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 2 Next »

WCF


Method
public AuthServerResponse ActiveDevice(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName, 
                 string otp1,
                 string otp2,
                 string printedSerialNumber)

WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account login name
otp1stringotp from the device to be activated
otp2stringsecond otp from the device  to be activated
printedSerialNumberstringSerial number of the device
Sample WCF C# Method
AuthServerResponseresp = ActiveDevice("accountLogin",             
            "accountKey", 
             "Mandy", 
            "123456",
            "789012", 
            "OATH_1234567");
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
typestringactive_oath_device
otp1intotp from the device to be activated
otp2intsecond otp from the device  to be activated
psnstringSerial number of the device
Sample REST/Json Method
 {  
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "active_oath_device",
  "otp1": 123456,
  "otp2": 123456,
  "psn": "OATH_1234567",
 }
Sample REST/Json Response
 {  
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "active_oath_device"
  }


  • No labels