Versions Compared

Key

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

...

Code Block
languagec#
title Method
AuthServerU2FResponseAuthServerResponse ValidateCSC(string authServerPartnerLoginName, 
            string authServerPartnerLoginPassword, 
            string authServerPartnerUserLoginName, 
            string authOtp, 
            string printedSerialNumber);


WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account login name
authOtpstringCard security code to be verified.
printedSerialNumberstring

Optional. Specific card identifier for this account. Used when there is more than one card per account.


Code Block
languagec#
titleSample WCF C# Method
 AuthServerU2FResponse AuthServerResponse resp = ValidateCSC("accountLogin", 
            "accountKey", 
            "Mandy", 
            "1234", 
            string.Empty);

...

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_csc
codestringCard security code to be verified.
psnstring

A specific card assigned to this user. If this is left empty then the first device assigned


Code Block
languagejs
titleSample REST/Json Method
 {
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "acccountKey",
  "type": "validate_csc",
  "code": "1234",
  "psn": ""
}

...