fastapi_aad_auth._base.validators.session
Session based validator for interactive (UI) sessions.
-
class fastapi_aad_auth._base.validators.session.SessionValidator(session_serializer: itsdangerous.url_safe.URLSafeSerializer, ignore_redirect_routes: Optional[List[str]] = None, *args, **kwargs)[source]
Validator for session based authentication.
Initialise validator for session based authentication.
-
check(request)[source]
Check the authentication from the request.
-
static get_session_serializer(secret, salt)[source]
Get or Initialise the session serializer.
-
get_state_from_session(request)[source]
Get the session from the request.
-
is_valid_redirect(redirect)[source]
Check if the redirect is not to endpoints that we don't want to redirect to.
-
logout(request)[source]
Process a logout request.
-
pop_post_auth_redirect(request)[source]
Clear post-authentication redirects.
-
set_post_auth_redirect(request, redirect='/')[source]
Set post-authentication redirects.