Anchor |
---|
| _Toc341972467 |
---|
| _Toc341972467 |
---|
|
AttributesAttribute | type | values | default | mandate | comment |
---|
serial | string |
|
| true |
|
Identifier | String |
|
| true |
|
Status | String | ACTIVE, DISABLED, DECEASED |
|
|
|
description | string |
|
| false |
|
users | coll |
|
|
|
|
assignedUsers | coll |
|
|
|
|
sharedUsers | coll |
|
|
|
|
product | object |
|
| true |
|
repository | object |
|
| false |
|
Anchor |
---|
| _Toc341972468 |
---|
| _Toc341972468 |
---|
|
/token/createExamples 1:
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
"attrs":
[
"product.id": "pid",
"user.id": "userid",
"pin": "tokenpin"
]
} |
...
Code Block |
---|
|
{
"error":0,
"result":
{
"id": "tokenid1"
}
} |
Anchor |
---|
| _Toc341972469 |
---|
| _Toc341972469 |
---|
|
/token/getExamples:
Method: /token/get
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
"match":
[
"serial":"token serial"
],
"return":["id", "serial","status"]
} |
Code Block |
---|
|
{
"error":0,
"result":
{
"id": "token id1",
"serial": "serial1",
"status": "ACTIVE"
}
} |
Anchor |
---|
| _Toc341972470 |
---|
| _Toc341972470 |
---|
|
/token/setExamples:
Method:/token/set
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
"id": "token id1",
"attrs":
{
"status": "DISABLED"
}
} |
Anchor |
---|
| _Toc341972471 |
---|
| _Toc341972471 |
---|
|
/token/deleteExamples:
Method:/token/delete
...
Anchor |
---|
| _Toc341972472 |
---|
| _Toc341972472 |
---|
|
/token/resetExamples:
Method:/token/reset
...
Anchor |
---|
| _Toc341972473 |
---|
| _Toc341972473 |
---|
|
/token/confineTo confine a token, the token cannot be downloaded again.
...
Anchor |
---|
| _Toc341972474 |
---|
| _Toc341972474 |
---|
|
/token/releaseTo release a token, the token can be downloaded again
...
Anchor |
---|
| _Toc341972475 |
---|
| _Toc341972475 |
---|
|
/token/importImport hardware tokens into token repository
...
Code Block |
---|
|
{
"error":0,
"result":
{
"total":3,
"rows":
[
{"id":"xxx","serial":"1001"},
{"id":"yyy","serial":"1002"},
{"id":"zzz","serial":"1003"}
]
}
} |
Anchor |
---|
| _Toc341972478 |
---|
| _Toc341972478 |
---|
|
/token/syncTokenExamples:
Method:/token/syncToken
...
Anchor |
---|
| _Toc341972480 |
---|
| _Toc341972480 |
---|
|
/token/batchAssignTokensExamples:
Method:/token/batchAssignTokens
...
Code Block |
---|
|
domain,loginName,manufacturerCode,productCode,serial,status,pin
"test domain", "john.smith", "DN", "MT", "10000", "ACTIVE", "1234" |
Anchor |
---|
| token_download_offline_data |
---|
| token_download_offline_data |
---|
|
/token/downloadOfflineDataExamples:
Method:/token/downloadOfflineData
Code Block |
---|
language | js |
---|
title | Parameters |
---|
|
{
"application": {
"name": "test-desktop-logon" // has to be the application name in current implementation
},
"encryptionKey":"encryption key", // optional
"tokens": [
{
"id": "df2aac1138fe109b7a7f30c70ede1217" // or other token attributes, serial etc
},
{
"id": "ccd27d2f4dc6ca67430f042578847105"
},
{
"id": "1ee19c081fb26e9461f51e330069a978"
}
],
"user": {
"id": "userid" // or other user attributes, like: "loginName": "acme\\john.smith" etc
},
"return": {
"tokenAssignment": [
"*"
],
"user": [
"loginName",
"email",
"userPrincipalName",
"domain.name",
"domain.netbiosName",
"domain.dnsName"
]
}
} |
...