The login method will take the username and password supplied, and if valid, return an authtoken. This authtoken will expire after 20 minutes of not being utilized, or if a new authtoken is requested for the user.
The authtoken assumes all permissions of the user that was authenticated in order to retrieve it.
class Test { static void Main() { AuthenticationServiceClient client = new AuthenticationServiceClient(); authToken = client.Login("admin", "password").ResultData; // Always close the client. client.Close(); } }
Input Parameters
Parameter | Type | Description |
---|---|---|
username | string | Username to obtain the authToken on behalf of |
password | string | Password used to authenticate the username supplied |