Login
Authenticates the user and returns an access token.
This endpoint supports two grant types:
- standard OAuth2 password grant type - only supported for the admin user and only available if the admin account is enabled
- standard OAuth2 device authorization grant type
Args: request: The request object. response: The response object. auth_form_data: The authentication form data. user_manager: The user manager. workspace_manager: The workspace manager.
Returns: An admin access token.
Raises: ValueError: If the grant type is invalid.
Body
grant_typeany ofOptional
stringOptional
nullOptional
usernameany ofOptional
stringOptional
nullOptional
passwordany ofOptional
stringOptional
nullOptional
client_idany ofOptional
stringOptional
nullOptional
client_secretany ofOptional
stringOptional
nullOptional
device_codeany ofOptional
stringOptional
nullOptional
audienceany ofOptional
stringOptional
nullOptional
Responses
200
Successful Response
application/json
422
Validation Error
application/json
post
/auth/loginLast updated
Was this helpful?