WCF
ValidateU2FUser Method
AuthServerU2FResponse ValidateUser(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 | false = verify user name and password; true=verify username only and return user status |
Sample WCF C# Method
AuthServerU2FResponse resp = ValidateUser("accountKey", "accountLogin", "Mandy", "user password", true);
Sample WCF C# Repsonse
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 | 0 = verify user name and password; 1=verify username only return user status |
Sample REST/Json Method
{ "username": "Mandy", "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "type": "validate_user", "pw": "user password" "noAuth: 1 }
Sample REST/Json Response
{ "errorCode": 9001, "errorMessage": "User login failure [Mandy]", "type": "validate_user" }