Login

Oauth:Login

post

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
or
nullOptional
usernameany ofOptional
stringOptional
or
nullOptional
passwordany ofOptional
stringOptional
or
nullOptional
client_idany ofOptional
stringOptional
or
nullOptional
client_secretany ofOptional
stringOptional
or
nullOptional
device_codeany ofOptional
stringOptional
or
nullOptional
audienceany ofOptional
stringOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
post
/auth/login

Last updated

Was this helpful?