POST api/auth/issuetoken
Gets an authentication token for the supplied user parameters.
Request Information
URI Parameters
None.
Body Parameters
UserName and Password
AuthenticationInfoName | Description | Type | Additional information |
---|---|---|---|
UserName |
Cinergy User Name. |
string |
None. |
Password |
Cinergy Password. |
string |
None. |
Request Formats
application/json, text/json
Samples:
{ "UserName": "sample string 1", "Password": "sample string 2" }
application/xml, text/xml
Samples:
<AuthenticationInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Dcip.KeyVault.Contracts.Dtos"> <Password>sample string 2</Password> <UserName>sample string 1</UserName> </AuthenticationInfo>
application/x-www-form-urlencoded
Samples:
UserName=user@sample.com&Password=samplepassword
Response Information
Resource Description
A bearer authentication token to be used for future requests.
stringHTTP Status Codes
Successful responses: 200 Ok
Unsuccessful responses: 400 Bad Request
Response Formats
application/json, text/json
Samples:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkNpbmVyZ3kgVXNlciIsInJvbCI6IktleURlbGl2ZXJ5IEFQSSIsImlzcyI6IkNpbmVyZ3kgS2V5IERlbGl2ZXJ5IFNlcnZpY2VzIiwibXNnIjoiWW91J3JlIGEgbm9zZXkgZ3V5LCBhcmVuJ3QgeWE_IiwiaWF0IjoxNTE2MjM5MDIyfQ.NfvNI3oINeO2HnAYx6W55CLLyXSlkQtqbHC_Dz5xYuk"
application/xml, text/xml
Samples:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkNpbmVyZ3kgVXNlciIsInJvbCI6IktleURlbGl2ZXJ5IEFQSSIsImlzcyI6IkNpbmVyZ3kgS2V5IERlbGl2ZXJ5IFNlcnZpY2VzIiwibXNnIjoiWW91J3JlIGEgbm9zZXkgZ3V5LCBhcmVuJ3QgeWE_IiwiaWF0IjoxNTE2MjM5MDIyfQ.NfvNI3oINeO2HnAYx6W55CLLyXSlkQtqbHC_Dz5xYuk</string>
Usage Examples
Use the response in an HTTP Authorization Header for future requests:
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkNpbmVyZ3kgVXNlciIsInJvbCI6IktleURlbGl2ZXJ5IEFQSSIsImlzcyI6IkNpbmVyZ3kgS2V5IERlbGl2ZXJ5IFNlcnZpY2VzIiwibXNnIjoiWW91J3JlIGEgbm9zZXkgZ3V5LCBhcmVuJ3QgeWE_IiwiaWF0IjoxNTE2MjM5MDIyfQ.NfvNI3oINeO2HnAYx6W55CLLyXSlkQtqbHC_Dz5xYuk