AuthenticateRead#
- class gafaelfawr.dependencies.auth.AuthenticateRead(*, allow_cookies=True, require_session=False, require_bearer_token=False, require_scope=None, redirect_if_unauthenticated=False, allow_bootstrap_token=False, auth_type=AuthType.Bearer, ajax_forbidden=False)#
Bases:
AuthenticateAuthenticate a read API.
Should be used as a FastAPI dependency.
- Parameters:
allow_cookies (
bool, default:True)require_session (
bool, default:False)require_bearer_token (
bool, default:False)redirect_if_unauthenticated (
bool, default:False)allow_bootstrap_token (
bool, default:False)auth_type (
AuthType, default:<AuthType.Bearer: 'bearer'>)ajax_forbidden (
bool, default:False)
Methods Summary
__call__(*, context)Call self as a function.
Methods Documentation
- async __call__(*, context)#
Call self as a function.
- Parameters:
context (
RequestContext)- Return type: