WCF
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerU2FResponse ValidateU2FUserValidateUser(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string authServerPartnerUserPassword, bool noAuth); |
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassId account login name |
authServerPartnerLoginPassword | string | SurePassId account login key |
authServerPartnerUserLoginName | string | User account login name |
authServerPartnerUserPassword | string | User account login password. If the server is setup to use Active Directory the user will be authenticated using AD. |
noAuth | bool | true = verify user name and password; false=verify username only |
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerU2FResponse resp = ValidateU2FUserValidateUser("accountKey", "accountLogin", "accountKey", "user password", true); |
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 |
_user | ||
pw | string | User account login password. If the server is setup to use Active Directory the user will be authenticated using AD. |
noAuth | int | 1 = verify user name and password; 0=verify username only |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "username": "Mandy", "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "type": "validate_u2f_user", "pw": "user password" "noAuth: 1 } |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"errorCode": 9001,
"errorMessage": "User login failure [Mandy]",
"type": "validate_u2f_user"
} |
...