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 9 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.
noAuthboolfalse = 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 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.
noAuthint0 = 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"
}


  • No labels