Body Required
The login request
-
The username part of the login request
-
The plain text password part of the login request
-
login_state object
Configure how the API responds after a successful login.
Additional properties are allowed.
Responses
-
Login successful, returns the token in the body (if 'login_state.path' not specified)
-
Redirects to '/sso/token#BEARER_TOKEN?state=LOGIN_STATE' with the fragment containing a bearer token (if 'login_state.path' is specified)
Additional properties are allowed.
-
The supplied authentication is invalid. (code:
root.unauthenticated
) -
The administrator needs to configure the authentication cluster. (code:
authc.no_authentication_cluster
) -
The authentication cluster failed to process the request. The response body contains details about the error. (code:
authc.authentication_cluster_error
)
curl \
-X POST https://{{hostname}}/api/v1/users/auth/_login \
-d '{"username":"string","password":"string","login_state":{"path":"string"}}'
{
"username": "string",
"password": "string",
"login_state": {
"path": "string"
}
}
{
"token": "string",
"session_expiration_time": "2024-05-04T09:42:00+00:00"
}
{}
# Headers
x-cloud-error-codes: root.unauthenticated
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
# Headers
x-cloud-error-codes: authc.no_authentication_cluster
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
# Headers
x-cloud-error-codes: authc.authentication_cluster_error
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}