...
| Code Block |
|---|
|
{
"return":["id","name"]
} |
Response:resetLogon
| Code Block |
|---|
|
{
"error":0,
"result":
{
"total":2,
"rows":
[
{
"id":"aid1",
"name":"application 1"
},
{
"id":"aid2",
"name":"application 2"
}
]
}
} |
...
| Code Block |
|---|
|
{
"application":
{
"id":"appid"
},
"remoteIp": "xxx.xxx.xxx.xxx", // client IP Address
"user":
{
"id":"userid"
},
"token":
{
"serial":"10000000"
},
"credential":
{
"otp":"123456",
//"cc":"121212" // if verifyResponse is required
}
} |
...
Examples:
Method:/auth/verify
Parameters:
| Code Block |
|---|
|
{
"remoteIp": "xxx.xxx.xxx.xxx", // client IP Address
"user":
{
"id":"userid"
},
"token": // optional
{
"serial":"10000000"
},
"credential":
{
"otp":"123456",
//"cc":"121212" // if verifyResponse is required
}
} |
...
| Code Block |
|---|
|
{
"user":
{
"loginName":"loginName"
},
"credential":
{
"method":"SPASS",
"password":"pass"
}
} |
...
...
Examples:
Method:/auth/verifyResponse
Parameters:
| Code Block |
|---|
|
{
"user":
{
"id":"userid"
},
"token":
{
"serial":"10000000"
},
"credential":
{
"otp":"123456",
"cc":"13113131"
}
} |
Response:
...
| Code Block |
|---|
|
{
"user":
{
"loginName":"login name",
"domain.id":"domainid"
},
"tokenAssignment":
{
"id":"assignment id"
}
"pin":"pin"
} |
Response:
/auth/resetLogon
Reset the logon session, this API will reset everything in the logon session: user, logon step, access control etc.
Request:
Response:
...