| Table of Contents |
|---|
| Anchor | ||||
|---|---|---|---|---|
|
Attribute | type | values | default | mandate | comment |
|---|---|---|---|---|---|
serial | string | true | |||
Identifier | String | true | |||
Status | String | ACTIVE, | |||
description | string | false | |||
users | coll | ||||
assignedUsers | coll | ||||
sharedUsers | coll | ||||
product | object | true | |||
repository | object | false |
| Anchor | ||||
|---|---|---|---|---|
|
Examples 1:
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"attrs":
[
"product.id": "pid",
"user.id": "userid",
"pin": "tokenpin"
]
} |
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"error":0,
"result":
{
"id": "tokenid1"
}
} |
| Anchor | ||||
|---|---|---|---|---|
|
Examples:
Method: /token/get
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"error":0,
"result":
{
"id": "token id1",
"serial": "serial1",
"status": "ACTIVE"
}
} |
| Anchor | ||||
|---|---|---|---|---|
|
Examples:
Method:/token/set
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"error":0
} |
| Anchor | ||||
|---|---|---|---|---|
|
Examples:
Method:/token/delete
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"error":0
} |
| Anchor | ||||
|---|---|---|---|---|
|
Examples:
Method:/token/reset
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"error":0
} |
| Anchor | ||||
|---|---|---|---|---|
|
To confine a token, the token cannot be downloaded again.
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"error":0
} |
| Anchor | ||||
|---|---|---|---|---|
|
To release a token, the token can be downloaded again
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"error":0
} |
| Anchor | ||||
|---|---|---|---|---|
|
Import 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 | ||||
|---|---|---|---|---|
|
Examples:
Method:/token/syncToken
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"error":0
} |
| Anchor | ||||
|---|---|---|---|---|
|
Examples:
Method:/token/batchAssignTokens
...
| Code Block | ||
|---|---|---|
| ||
domain,loginName,manufacturerCode,productCode,serial,status,pin "test domain", "john.smith", "DN", "MT", "10000", "ACTIVE", "1234" |
| Anchor | ||||
|---|---|---|---|---|
|
Examples:
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"
}
} |