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)
-
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)
POST
/users/auth/_login
curl \
--request POST 'https://{{hostname}}/api/v1/users/auth/_login' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"username":"string","password":"string","login_state":{"path":"string"}}'