URLs & Views#
Your project urls.py should include:
urlpatterns = [
...
path("", include("allauth.idp.urls")),
...
]
The above will enable the following views:
/.well-known/openid-configurationProvides the OpenID Provider Configuration Information. This endpoint returns a JSON document that includes metadata about the OIDC provider, such as supported authentication methods, token endpoints, and available scopes.
/.well-known/jwks.jsonServes the JSON Web Key Set (JWKS) used to verify the signatures of JWTs issued by the OIDC provider. Clients use this to validate ID tokens and access tokens.
/identity/o/authorizeThe authorization endpoint used to initiate the OAuth2/OIDC flow. It handles authentication requests and issues authorization codes or tokens based on the request parameters.
/identity/o/api/revokeAllows clients to revoke access or refresh tokens. This endpoint helps maintain security by invalidating credentials that are no longer needed or have been compromised.
/identity/o/api/userinfoReturns user profile information in a JSON format. This endpoint is typically used after a successful authentication to fetch claims about the authenticated user.
/identity/o/api/tokenHandles the exchange of authorization codes for tokens, or client credentials for access tokens. This is a key component of the token flow in OAuth2/OIDC.