Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Expire date response does not change in ENSURE token #93

Open
hyhashemi opened this issue Feb 26, 2019 · 0 comments
Open

Expire date response does not change in ENSURE token #93

hyhashemi opened this issue Feb 26, 2019 · 0 comments

Comments

@hyhashemi
Copy link

With this curl,
curl -XENSURE http://192.168.1.57:81/apiv1/tokens -F"phone=989141194300" -F"name=12345678910" -F"cryptomoduleId=1" -F"expireDate=2840140800" -F"bankId=2"

I get below response with the expire date "2022-12-29"

{  
    "phone":989141194300,
    "cryptomodule":{
        "id":1,
        "oneTimePasswordLength":4,
        "timeInterval":60
    },
    "createdAt":"2019-01-27T07:42:55.845656",
    "bankId":2,
    "name":"12345678910",
    "deactivatedAt":null,
    "id":213,
    "modifiedAt":null,
    "expireDate":"2022-12-29",
    "isActive":true,
    "provisioning":"mt:\/\/oath\/totp\/78470ce4898b36d1d46fbdd40668f165c22c3de1ef880a5ddcbfe0978d868cb1fa7d4b7f10cc090ad21267afa747bf1155554e63e9d5230a1aec98adac9f2892"
}

In another curl which I change the timestamp in curl input, I still get the same expire date in response:

curl -XENSURE http://192.168.1.57:81/apiv1/tokens -F"phone=989141194300" -F"name=12345678910" -F"cryptomoduleId=1" -F"expireDate=1572264891" -F"bankId=2"

The response:

 {
    "phone":989141194300,
    "cryptomodule":{
        "id":1,
        "oneTimePasswordLength":4,
        "timeInterval":60
    },
    "createdAt":"2019-01-27T07:42:55.845656",
    "bankId":2,
    "name":"12345678910",
    "deactivatedAt":null,
    "id":213,
    "modifiedAt":null,
    "expireDate":"2022-12-29",
    "isActive":true,
    "provisioning":"mt:\/\/oath\/totp\/a64cd5e0ee80db6b15fd60b78bc94064f0587aa3739848ed8e177dfde15c0a630482d0c82f79fdf74b1b3d90ad681e92684985deacf75b6b1a452d97b99d9115"
}

It only changes per user, if I change the phone number I get another constant expire date.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant