Method:/token/create
Table of Contents |
---|
Example 1
...
: Create a token and assign the token by user ID
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "attrs": [ "product.id": "pid", "user.id": "userid", "pin": "tokenpin" ] } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0, "result": { "id": "token id" } } |
Example 2
...
: Create a token and assign the token by user name
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "attrs": [ "product": { "manufacturerCode":"DN", "productCode":"MT" }, "user": { "domain.name":"domain.com", "loginNam":"john.smith" } "pin": "tokenpin" ] } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0, "result": { "id": "token id" } } |
Example 3
...
: Create a token and assign the token, and get the token assignment ID
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "attrs": [ "product": { "manufacturerCode":"DN", "productCode":"MT" }, "user": { "domain.name":"domain.com", "loginNam":"john.smith" } "pin": "tokenpin" ], "return": ["id", "serial", "product.name", {"tokenAssignments":[{"elements":["id"]}]}] } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0, "result": { "id": "token id", "serial": "token serial", "product.name": "MobileID", "tokenAssignments": { "elements": [ { "id": "dda5f3744f7d7750676acc24f31fe128884fb445acf67c36bf648e179055cfe5token assignment id" } ] } } } |