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 |
---|
|
{
"error":0,
"result":
{
"id": "token id1",
"serial": "serial1",
"status": "ACTIVE"
}
} |
Anchor |
---|
| _Toc341972470 |
---|
| _Toc341972470 |
---|
|
/token/setExamples:
Method:/token/set
...
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 |
---|
|
{
"error": 0,
"message": "Succeeded",
"result": {
"offlineData": "encrypted data encoded in base64"
}
} |
...
Method: /token/preRegister
Code Block |
---|
|
{
"product":{
"productCode":"FIDO2",
"method":"FIDO2",
"manufacturerCode":"DN"
},
"params":{
"serverAddress":"https://dualshield.deepnetsecurity.com:8074"
},
"user":{"loginName":"management\\xxx"}
} |
Code Block |
---|
|
{
"error": 0,
"message": "Succeeded",
"result": {
"registerRequestData": "{\"rp\":{\"name\":\"deepnetsecurity.com\",\"id\":\"deepnetsecurity.com\"},\"user\":
{\"name\":\"xxx\",\"displayName\":\"xxx\",\"id\":\"xxx\"},\"challenge\":\"4xXusQat1UEP4VmKiAVU2dPHopyzHOgb0OhjiLympTE\",\"pubKeyCredParams\":[{\"alg\":-7,\"type\":\"public-key\"},{\"alg\":-8,\"type\":\"public-key\"},
{\"alg\":-257,\"type\":\"public-key\"}],\"excludeCredentials\":[],\"authenticatorSelection\":{\"userVerification\":\"preferred\"},\"attestation\":\"direct\",\"extensions\":
{\"appidExclude\":\"https://dualshield.deepnetsecurity.com:8074\",\"credProps\":true}}",
"registerRequestId": "6d462c7143e9f3ee79936ff4e9e947b9c7b978071bc56afdfc32a396223df2be"
}
} |
...
Method: /token/register
Code Block |
---|
|
{
"product":{"productCode":"FIDO2"},
"application":{"name":"Computer Logon"},
"params":{"serverAddress":"https://dualshield.deepnetsecurity.com:8074"},
"user":{"loginName":"xxx"},
"token":{
"pin":"xxx",
"publicKeyCredentialJson":"{\"clientExtensionResults\":\"xxx\"}"
"registerRequestId":"xxx"
}
} |
Code Block |
---|
|
{
"error": 0,
"result": {
"serial": "xxx",
"id": "xxx",
"status": "ACTIVE",
"needActivation": false,
"tokenAssignmentId": "xxx"
},
"message": "Succeeded"
} |