POST v1/Token/UserAuthentication
Request Information
URI Parameters
None.
Body Parameters
LoginUserRequestName | Description | Type | Additional information |
---|---|---|---|
DomainName | string |
Required |
|
UserName | string |
Required |
|
Password | string |
Required |
|
IsPasswordEncrypted | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{ "DomainName": "sample string 1", "UserName": "sample string 2", "Password": "sample string 3", "IsPasswordEncrypted": true }
application/xml, text/xml
Sample:
<LoginUserRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <DomainName>sample string 1</DomainName> <UserName>sample string 2</UserName> <Password>sample string 3</Password> <PasswordEncrypted>true</PasswordEncrypted> </LoginUserRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
MidnightAuthResponseName | Description | Type | Additional information |
---|---|---|---|
access_token | string |
None. |
|
refresh_token | string |
None. |
|
token_type | string |
None. |
|
expires_in | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "access_token": "sample string 1", "refresh_token": "sample string 2", "token_type": "sample string 3", "expires_in": 4 }
application/xml, text/xml
Sample:
<MidnightAuthResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <access_token>sample string 1</access_token> <refresh_token>sample string 2</refresh_token> <token_type>sample string 3</token_type> <expires_in>4</expires_in> </MidnightAuthResponse>