WCF
Code Block | ||||
---|---|---|---|---|
| ||||
public AuthServerResponseProvisionQRCode ProvisionQRCode(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string deviceID, string accountName) |
...
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerResponseProvisionQRCode resp = ProvisionQRCode("accountLogin",
"accountKey",
"Mandy",
"142o6-ar4v3-q2b85",
"Prod"); |
Code Block | ||||
---|---|---|---|---|
| ||||
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; } |
REST
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassId account login name |
spAccountLoginKey | string | SurePassId account login key |
username | string | user account login name |
type | string | get_oath_device_qrcode |
deviceId | string | Unique identifier for this device |
accountName | string | The user friendly account name that will display on the mobile device for this device |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "username": "Mandy",
"spAccountLoginName": "accountLogin",
"spAccountLoginKey": "accountKey",
"type": "get_oath_device_qrcode",
"deviceId": "142o6-ar4v3-q2b85",
"accountName": "Prod"
} |
Code Block | ||||
---|---|---|---|---|
| ||||
...