swh.web.auth.backends module

class swh.web.auth.backends.OIDCAuthorizationCodePKCEBackend[source]

Bases: object

authenticate(request: django.http.request.HttpRequest, code: str, code_verifier: str, redirect_uri: str) → Optional[swh.web.auth.models.OIDCUser][source]
get_user(user_id: int) → Optional[swh.web.auth.models.OIDCUser][source]
class swh.web.auth.backends.OIDCBearerTokenAuthentication[source]

Bases: rest_framework.authentication.BaseAuthentication

authenticate(request)[source]

Authenticate the request and return a two-tuple of (user, token).