POST api/Auth/User
Authenticates a user based on the provided login credentials and returns an authentication token if successful.
Request Information
URI Parameters
None.
Body Parameters
The login request containing the user's username and password. Both fields are required and must not be null or empty.
LoginRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Username | string |
None. |
|
| Password | string |
None. |
|
| Scope | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Username": "sample string 1",
"Password": "sample string 2",
"Scope": "sample string 3"
}
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
An HTTP response containing the authentication token if the credentials are valid; otherwise, a BadRequest response with an error message.
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.