...
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerU2FResponse resp = ValidateU2FUser("accountKey", "accountLogin", "accountKey", "user password"); |
Code Block | ||||
---|---|---|---|---|
| ||||
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; } |
REST
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassId account login name |
spAccountLoginKey | string | SurePassId account login key |
username | string | user account login name |
type | string | validate_u2f_user |
pw | string | User account login password. If the server is setup to use Active Directory the user will be authenticated using AD. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{
"username": "Mandy",
"spAccountLoginName": "accountLogin",
"spAccountLoginKey": "accountKey",
"type": "validate_u2f_user",
"pw": "user password"
} |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"errorCode": 9001,
"errorMessage": "User login failure [Mandy]",
"type": "validate_u2f_user"
} |