AuthenticateRead¶
- class gafaelfawr.dependencies.auth.AuthenticateRead(*, 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:
Authenticate
Authenticate a read API.
Should be used as a FastAPI dependency.
- Parameters:
Methods Summary
__call__
(*, context)Call self as a function.
Methods Documentation
- async __call__(*, context)¶
Call self as a function.
- Parameters:
context (
RequestContext
)- Return type: