Versions Compared

Key

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

WCF

 


Code Block
languagec#
title Method
public AuthServerResponseProvisionQRCode ProvisionQRCode(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName, 
                 string deviceID, 
                 string accountName)


WCF parameterdata typedescription
authServerPartnerLoginNamestring
SurePassId
SurePassID account login name
authServerPartnerLoginPasswordstring
SurePassId
SurePassID account login key
authServerPartnerUserLoginNamestringUser account login name
deviceIDstringUnique identifier for this device
accounyName
accountNamestringThe user friendly account name that will display on the mobile device for this device


Code Block
languagec#
titleSample WCF C# Method
AuthServerResponseProvisionQRCode resp = ProvisionQRCode("accountLogin",             
            "accountKey", 
            "Mandy", 
            "142o6-ar4v3-q2b85", 
            "Prod");

...

Code Block
languagec#
titleSample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }

 


REST


REST parameterdata typedescription
spAccountLoginNamestring
SurePassId
SurePassID account login name
spAccountLoginKeystring
SurePassId
SurePassID account login key
usernamestringuser account login name
typestringget_oath_device_qrcode
deviceIdstringUnique identifier for this device
accountNamestringThe user friendly account name that will display on the mobile device for this device


Code Block
languagejs
titleSample REST/Json Method
 {  
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "get_oath_device_qrcode",
  "deviceId": "142o6-ar4v3-q2b85",
  "accountName": "Prod"
}

...

Code Block
languagejs
titleSample REST/Json Response
 

 

...

{  
  "errorCode": 0,
  "errorMessage": "OK",
  "QRCodeURL": "https://qrcode_url_to_display"
  "type": "get_oath_device_qrcode"
}