WCF
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerU2FResponseAddUser AddU2FUser(String authServerPartnerLoginName, string authServerPartnerLoginPassword, string firstName, string lastName, string loginName, string loginPassword, string email, string mobilePhone, bool onlyAddDeviceaddDeviceOnly, 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 |
addDeviceOnly | bool |
false = add user and u2f device, |
true= just add |
u2f device to existing user account |
notificationMethod | short | send welcome message to user. 0 = none, 1=email, 2=sms |
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerU2FResponseAddUser resp = AddU2FUser(String authServerPartnerLoginName"accountLogin", string authServerPartnerLoginPassword"accountKey", string firstName"Mandy", string lastName"Last", string loginName"Mandy", string loginPassword"M@5ndy58!", string emailMandy5@myco.com, string mobilePhone"+1(407)555-1212, bool onlyAddDevicefalse, short notificationMethod0); |
Code Block | ||||
---|---|---|---|---|
| ||||
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_ |
user | ||
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 |
notificationMethod | int | send welcome message to user. 0 = none, 1=email, 2=sms |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"username": "Mandy",
"spAccountLoginName": "accountLogin",
"spAccountLoginKey": "accountKey",
"type": "add_u2f_user",
"firstName": "Mandy",
"lastName": "Last",
"email": "Mandy5@myco.com",
"pw": "M@5ndy58!",
"mobile": "+1(407)555-1212"
"notificationMethod": 0
}
|
Code Block | ||||
---|---|---|---|---|
| ||||
...
{
"errorCode": 0,
"errorMessage": "OK",
"type": "add_u2f_user"
} |