Versions Compared

Key

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

WCF


Code Block
languagec#
titleAddU2FUser Method
 AuthServerU2FResponseAddUser AddU2FUser(String authServerPartnerLoginName,
                               string authServerPartnerLoginPassword,
                               string firstName,
                               string lastName,
                               string loginName,
                               string loginPassword,
                               string email,
                               string mobilePhone,
                               bool addDeviceaddDeviceOnly,
                               short notificationMethod);

...

WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId SurePassID account login name
authServerPartnerLoginPasswordstringSurePassId SurePassID 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
addDeviceaddDeviceOnlybooltrue false = add user and u2f device, falsetrue= just add user; u2f device will be added to u2f device to existing user account later
notificationMethodshort

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


...

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


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassId SurePassID account login name
spAccountLoginKeystringSurePassId SurePassID account login key
usernamestringUser account login name
typestringadd_u2f_user
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
notificationMethodintsend welcome message to user.  0 = none, 1=email, 2=sms

...