/
Validate Passcode (One Time Passcode)

Validate Passcode (One Time Passcode)

WCF


Method
AuthServerResponse ValidateOTP(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
authOtpstringPasscode to be verified. Usually sent by Send Passcode API
printedSerialNumberstring

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

Sample WCF C# Method
 AuthServerResponse resp = ValidateOTP("accountLogin", 
            "accountKey", 
            "Mandy", 
            "123456", 
            string.Empty);
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_oath_otp
codestringPasscode to be verified
psnstring

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

Sample REST/Json Method
 {
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "acccountKey",
  "type": "validate_oath_otp",
  "otp": "123456",
  "psn": ""
}
Sample REST/Json Response
 {
  "errorCode": 9003,
  "errorMessage": "OTP [EVENT] [TSFT-001242] FAILED - [123456] outside window [size=30] or invalid. ",
  "type": "validate_oath_otp"
}



Related content

Send Passcode (One Time Passcode)
Send Passcode (One Time Passcode)
More like this
Validate Card Security Code (dCVx)
Validate Card Security Code (dCVx)
More like this
Validate User
More like this
Enable Device
More like this
Activate OATH Device
Activate OATH Device
More like this
Assign Device To User Account
Assign Device To User Account
More like this