Acquire Token Using POST
Performing a POST /api/auth/token/acquire
would yield a response object that includes token and its validity. HTTP Status 401 will be sent back if the authentication operation has failed.
NOTE: The validity of the acquired token is extended after each call and is set to 6 hours from the last call.
The UsernamePassword object that encapsulates username, password and optionally the name of an Auth Source as specified by the user
Show optional properties
{
"password": "string",
"username": "string"
}
{
"authSource": "string",
"password": "string",
"username": "string"
}
The auth source name
The password
The username
The token and expiry time of the token
{
"expiresAt": "string",
"roles": [
"string"
],
"token": "string",
"validity": 0
}
Token expiration time, in easy to read string representation (since Jan 1, 1970)
List of roles the current user has
Auth token for accessing future rest API(s)
Token expiration time in milliseconds (since Jan 1, 1970)
Authentication failed