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

WCF

 

Method
        AuthServerU2FResponse SendOTP(string authServerPartnerLoginName, 
                     string authServerPartnerLoginPassword, 
                     string authServerPartnerUserLoginName, 
                     string printedSerialNumber, 
                     short deliveryMethod);
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account login name
printedSerialNumberstring

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

deliveryMethodshortthe method to send the pass code to the user. 0=sms, 1=email, 2=voice
Sample WCF C# Method
 AuthServerU2FResponse SendOTP(string authServerPartnerLoginName,
                     string authServerPartnerLoginPassword, 
                     string authServerPartnerUserLoginName, 
                     string printedSerialNumber, 
                     short deliveryMethod);
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
typestringsend_oath_otp 
printedSerialNumberstring

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

device is used 

deliveryMethodstringthe method to send the pass code to the user. values are sms, voice, email


Sample REST/Json Method
{
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "send_oath_otp",
  "deliveryMethod": "sms"
}
Sample REST/Json Response
 {
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "send_oath_otp"
}

 

 

 if (resp.ErrorCode != 0)  {     
       message.Text = resp.ErrorMsg;
       return false;
 }
  • No labels