Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

WCF


ValidateU2FUser Method
AuthServerU2FResponse ValidateUser(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
Sample WCF C# Method
  AuthServerU2FResponse resp = ValidateUser("accountKey", 
           "accountLogin", 
           "accountKey", 
           "user password",
            true);
Sample 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_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
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"
}


  • No labels