Versions Compared

Key

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

...

Code Block
languagec#
titleSample WCF C# Method
  AuthServerU2FResponse resp = ValidateU2FUser("accountKey", "accountLogin", "accountKey", "user password");
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.

...

Code Block
languagejs
titleSample REST/Json Method
 {
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "validate_u2f_user",
  "pw": "user password"
}
Code Block
languagejs
titleSample REST/Json Response
 {
  "errorCode": 9001,
  "errorMessage": "User login failure [Mandy]",
  "type": "validate_u2f_user"
}