...
Anchor | ||||
---|---|---|---|---|
|
Parameters:
Code Block | ||
---|---|---|
| ||
{
| ||
Wiki Markup | ||
+Examples:+ Method:/auth/getChallengeCode Parameters: \{ "user": \ { "loginName":"login name", "domain.id":"domainid" \ }, "token": \ { "id":"tid1" \ }, return:\["id", "code", "starts", "expires"\] \} |
Response:
Code Block | ||
---|---|---|
| ||
\{ "error":0, "result":\{"id":1, "code":"xxx", starts:"xxx", expires:"xxx"\} \} \\ + |
Examples:
...
The
...
GridGo
...
challenge
...
code
...
is
...
the
...
matrix
...
in
...
JSON string
Code Block | ||
---|---|---|
| ||
{ string \\ Parameters: \{ "user": \ { "loginName":"login name", "domain.id":domainid \ }, "token": \ { "product.method":"GridGo" \ }, \\ "return":\["id", "code", "reference"\] \} |
Response:
Code Block | ||
---|---|---|
| ||
\{ "error":0, "result": \ { "id":"#i#_ChallengeCode_22", "code": ' "{\{"grid\":[\["53c1s3npxgws4pw6jp5kx3\", \"scmmu698wp9t1sag5spxzz\", \"gmmzdj97x3jn4bpe9cvu1r\", \"ps0hs5g2nh5xer6r93fj7x\", \"mn8zbs5nnnm8rxt2r5ekd0\", \"0jr935hx618a3vcvzdehn0\", \"9xtr71jff7jaz255n5rtc4\", \"dr96rxn7pgs3anmfzpeu7y\", \"uf06ttmc3kfvhrun2remk9\", \"z7c3ytf9u2xtfmc60p06ax\"\], \"rows\":10, \"cols\":22, \"indiecs\":\"ABCDEFGHJKMNPRSTUVWXY\" \ }'", "reference":"10948e64-b829-47be-be2a-414217bee16f" \ } \} |
Anchor | ||||
---|---|---|---|---|
|
Parameters:
Code Block | ||
---|---|---|
| ||
{
| ||
Wiki Markup | ||
+Examples:+ Method:/auth/listTokens Parameters: \{ "user": \ { "loginName":"login name", "domain.id":domainid \ }, "token": \ { "product.method":"GridCard" \ }, \\ "return":\["id", "serial"\] \} |
Response:
Code Block | ||
---|---|---|
| ||
\{ "error":0, "result": \ { "total":2, "rows": \ [ \ {"id":1, "serial":"77003456"\}, \ {"id":2, "serial":"77003457"\} \ ] \ } \} \\ |
Anchor | ||||
---|---|---|---|---|
|
Examples:
Method:/auth/changePassword
Parameters:
Code Block | ||
---|---|---|
| ||
{ |
...
"user": |
...
{ "loginName":"login name", |
...
"domain.id":domainid |
...
}, |
...
"oldPassword":"old", |
...
"newPassword":"new" |
...
} |
Response:
Code Block | ||
---|---|---|
| ||
{ |
...
"error":0 |
...
} |
Anchor | ||||
---|---|---|---|---|
|
Examples:
Method:/auth/verifyPin
1. verify password
Parameters:
Code Block | ||
---|---|---|
| ||
{ |
...
"user": |
...
{ "loginName":"login name", |
...
"domain.id":domainid |
...
}, |
...
"pin":"password" } |
2. verify pin
Parameters
}
Response: {
"error":0
}
- verify pin
...
Code Block | ||
---|---|---|
| ||
{ "user": |
...
{ "loginName":"login name", |
...
"domain.id":domainid |
...
}, |
...
"token": |
...
{ "serial":"1213131" |
...
} |
...
"pin":"pin" |
...
} |
Response: {
Code Block | ||
---|---|---|
| ||
{ "error":0 |
...
} |
3 verify pin by assignment
Parameters:
Code Block |
---|
...
| ||
{ "user": |
...
{ "loginName":"login name", |
...
"domain.id":domainid |
...
}, |
...
"tokenAssignment": |
...
{ "id":"assignment id" |
...
} |
...
"pin":"pin" |
...
} |
Response:
Code Block | ||
---|---|---|
| ||
{ |
...
"error":0 |
...
} |