Authenticates the user with the specified credentials
POST/v1/users/default/login
Authenticates the user with the specified credentials
Request
Query Parameters
setCookie boolean
Default value: true
Describes a way to set cookie from backend.
extendedSession boolean
Flag which if set to true will extend token timeout for the user to 24hrs and if not set will default to 2hrs
- application/json
Body
required
passwordpassword
The user's password to authenticate user for system login
usernamestring
The username of the user trying to do system login
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
IsFirstLoginboolean
Flag to indicate if the user is logging in for the first time
Token
object
System login token
Authorizationstring
The token granting the authorization access to the user
{
"IsFirstLogin": true,
"Token": {
"Authorization": "string"
}
}
Invalid input
- application/json
- Schema
Schema
any
Server Error
- application/json
- Schema
Schema
any
Loading...