WCF
Method
public AuthServerResponseProvisionDevice ProvisionDevice(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string deviceID, string physicalDeviceId)
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassId account login name |
authServerPartnerLoginPassword | string | SurePassId account login key |
authServerPartnerUserLoginName | string | User account login name |
deviceID | string | Unique identifier for this device. This identifier can represent a soft token device type such as a mobile app or desktop app |
physicalDeviceId | string | Unique physical (hardware) identifier for this device |
Sample WCF C# Method
AuthServerResponseProvisionDevice resp = ProvisionDevice("accountLogin", "accountKey", "Mandy", "142o6-ar4v3-q2b85", "34xcdfg67dvgv45r");
Sample WCF C# Repsonse
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; } else { // returns device information for local app provisioning. }
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 | provision_oath_device |
deviceId | string | Unique identifier for this device. This field is assigned by the server when the device was created. |
physicalDeviceId | string | Unique physical (hardware) identifier for this device |
Sample REST/Json Method
{ "username": "Mandy", "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "type": "provision_oath_device", "deviceId": "142o6-ar4v3-q2b85", "physicalDeviceId": "Prod_Authenticator" }
Sample REST/Json Response
{ "errorCode": 0, "errorMessage": "OK", "deviceType": 0, ... ... ... "type": "get_oath_device_qrcode" }