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 parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassId account login name |
authServerPartnerLoginPassword | string | SurePassId account login key |
firstName | string | First name |
lastName | string | Last name |
loginName | string | User account login name |
loginPassword | string | Users password. If omitted one will be generated. If using Active Directory on the server this parameter is ignored. |
string | User email. Used for sending email notifications and temporary pass codes. | |
mobilePhone | string | Users mobile phone Used for sending voice or sms messages |
onlyAddDevice | bool | true = add user and u2f device, false= just add user; u2f device will need to be added to user account later |
notificationMethod | short | 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 parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassId account login name |
spAccountLoginKey | string | SurePassId account login key |
username | string | User account login name |
type | string | add_u2f_device |
firstName | string | First name |
lastName | string | Last name |
string | User email. Used for sending email notifications nd temporary pass codes. | |
pw | string | Users password. If omitted one will be generated. If using Active Directory on the server this parameter is ignored. |
mobile | string | Users 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" }