Authentication (Allauth Headless)

Get configuration

There are many configuration options that alter the functionality and behavior of django-allauth, some of which can also impact the frontend. Therefore, relevant configuration options are exposed via this endpoint. The data returned is not user/authentication dependent. Hence, it suffices to only fetch this data once at boot time of your application.

get/api/v2/allauth/app/v1/config

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

client'app' | 'browser' required

The type of client accessing the API.

Response

The django-allauth configuration.

status200 required

Example response

{
  "status": 200,
  "data": {
    "account": {
      "authentication_method": "email"
    },
    "socialaccount": {
      "providers": [
        {
          "id": "google",
          "name": "Google",
          "flows": [
            "provider_redirect",
            "provider_token"
          ],
          "client_id": "123.apps.googleusercontent.com",
          "openid_configuration_url": "https://accounts.google.com/.well-known/openid-configuration"
        }
      ]
    },
    "mfa": {
      "supported_types": [
        "recovery_codes",
        "totp"
      ]
    },
    "usersessions": {
      "track_activity": false
    }
  }
}

Changes

No recorded changes to this operation across all 50 revisions of this API.