swh.auth.django.views module

swh.auth.django.views.oidc_login_view(request: django.http.request.HttpRequest, redirect_uri: str, scope: str = 'openid')[source]

Helper view function that initiates a login process using OIDC authorization code flow with PKCE.

OIDC session scope can be modified using the dedicated parameter.

swh.auth.django.views.get_oidc_login_data(request: django.http.request.HttpRequest) Dict[str, Any][source]

Check and get login data stored in django session.

swh.auth.django.views.oidc_login(request: django.http.request.HttpRequest) django.http.response.HttpResponse[source]

Django view to initiate login process using OpenID Connect authorization code flow with PKCE.

swh.auth.django.views.oidc_login_complete(request: django.http.request.HttpRequest) django.http.response.HttpResponse[source]

Django view to finalize login process using OpenID Connect authorization code flow with PKCE.

swh.auth.django.views.oidc_logout(request: django.http.request.HttpRequest) django.http.response.HttpResponse[source]

Django view to logout using OpenID Connect.