AuthenticateUser

Used to retrieve a User Object using an encryptedToken, username, encrypted password, and a salt.

URI GET rest/v1/authenticateuser/{userName}/{salt}

Returns – A UserResponse containing a User Object in the User Array property. (See UserResponse in Appendix B)

Parameters

Name Type Description
encryptedToken string Required. EncryptedToken retrieved through previous
calls.
username string Required. User’s email address.
encryptedPassword string Required. The encrypted password for the user.
salt string Required. Any combination of text and numbers
that was used to encrypt the plain text password
into encryptedPassword.

 

Example – C#

[gdlr_notification icon=”none” type=”color-border” border=”#31BEF9″ color=”#000000″]
string uri = “rest/v1/authenticateuser/{0}/{1}”;
string salt = “Z1s6aXNQpjQ75wRX1ulI551sR1uHyg3YsOcPLeL9TaM”;
string responseString = string.Empty;
JavaScriptSerializer jss = new JavaScriptSerializer();
UserResponse userResponse;

uri = string.Format(uri, userName, salt);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host + uri);
request.Headers.Add(“Authorization” , encryptedToken + “:” + encryptedPassword);
request.Method = “GET”;
request.ContentType = “application/json”;

HttpWebResponse response = (HttpWebResponse)request.GetResponse();
responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
userResponse = jss.Deserialize<RequestResponse>(responseString);
[/gdlr_notification]