Login

Token

post

OAuth2 token endpoint.

Args: request: The request object. response: The response object. auth_form_data: The OAuth 2.0 authentication form data.

Returns: An access token or a redirect response.

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
device_codeany ofOptional
stringOptional
or
nullOptional
Responses
200
Successful Response
application/json
Responseany of
or
post
POST /api/v1/login HTTP/1.1
Host: 
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 97

"grant_type='text'&username='text'&password='text'&client_id='text'&device_code='text'"
{
  "access_token": "text",
  "token_type": "text",
  "expires_in": 1,
  "refresh_token": "text",
  "csrf_token": "text",
  "scope": "text",
  "device_id": "123e4567-e89b-12d3-a456-426614174000",
  "device_metadata": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Last updated

Was this helpful?