Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

WCF

 


Code Block
languagec#
titleValidateU2FUser Method
AuthServerU2FResponse ValidateU2FUserValidateUser(string authServerPartnerLoginName, 
                      string authServerPartnerLoginPassword, 
                      string authServerPartnerUserLoginName, 
                      string authServerPartnerUserPassword,
                      bool noAuth);
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account login name
authServerPartnerUserPasswordstringUser account login password. If the server is setup to use Active Directory the user will be authenticated using AD.
noAuthbooltrue = verify user name and password;  false=verify username only
Code Block
languagec#
titleSample WCF C# Method
  AuthServerU2FResponse resp = ValidateU2FUserValidateUser("accountKey", 
           "accountLogin", 
           "accountKey", 
           "user password",
            true);
Code Block
languagec#
titleSample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {
       message.Text = resp.ErrorMsg;
       return false;
 }

 


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassId account login name
spAccountLoginKeystringSurePassId account login key
usernamestringuser account login name
typestringvalidate
_u2f
_user
pwstringUser account login password. If the server is setup to use Active Directory the user will be authenticated using AD.
noAuthint1 = verify user name and password;  0=verify username only
Code Block
languagejs
titleSample REST/Json Method
 {
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "validate_u2f_user",
  "pw": "user password"
  "noAuth: 1
}
Code Block
languagejs
titleSample REST/Json Response
 {
  "errorCode": 9001,
  "errorMessage": "User login failure [Mandy]",
  "type": "validate_u2f_user"
}

 

...