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

WCF

 

AddU2FUser Method
 AuthServerU2FResponseAddUser AddU2FUser(String authServerPartnerLoginName,
                               string authServerPartnerLoginPassword,
                               string firstName,
                               string lastName,
                               string loginName,
                               string loginPassword,
                               string email,
                               string mobilePhone,
                               bool onlyAddDevice,
                               short notificationMethod);
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
firstNamestringFirst name
lastNamestringLast name
loginNamestringUser account login name
loginPasswordstringUsers password. If omitted one will be generated. If using Active Directory on the server this parameter is ignored.
emailstringUser email. Used for sending email notifications and temporary pass codes.
mobilePhonestringUsers mobile phone Used for sending voice or sms messages
onlyAddDevicebooltrue = add user and u2f device, false= just add user; u2f device will need to be added to user account later
notificationMethodshort

send welcome message to user.  0 = none, 1=email, 2=sms

 

Sample WCF C# Method
  AuthServerU2FResponseAddUser resp = AddU2FUser(String authServerPartnerLoginName,
                               string authServerPartnerLoginPassword,
                               string firstName,
                               string lastName,
                               string loginName,
                               string loginPassword,
                               string email,
                               string mobilePhone,
                               bool onlyAddDevice,
                               short notificationMethod);
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
typestringadd_u2f_device
firstNamestringFirst name
lastNamestringLast name
emailstringUser email. Used for sending email notifications nd temporary pass codes.
pwstringUsers password. If omitted one will be generated. If using Active Directory on the server this parameter is ignored.
mobilestringUsers mobile phone Used for sending voice or sms messages
Sample REST/Json Method
 {
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "add_u2f_device",
  "firstName": "Mandy5",
  "lastName": "Mandy5",
  "email": "Mandy5",
  "pw": "Mandy5",
  "mobile": "407-555-1212"
}

Sample REST/Json Response
 {  
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "add_u2f_device"
}

 

 

  • No labels