AuthenticateWrite#
- class gafaelfawr.dependencies.auth.AuthenticateWrite(require_session=False, require_scope=None, redirect_if_unauthenticated=False, allow_bootstrap_token=False, auth_type=AuthType.Bearer, ajax_forbidden=False)#
Bases:
AuthenticateAuthenticate a write API.
Should be used as a FastAPI dependency.
- Parameters:
Methods Summary
__call__([x_csrf_token, context])Call self as a function.
Methods Documentation
- async __call__(x_csrf_token=Header(None), context=Depends(ContextDependency))#
Call self as a function.
- Parameters:
context (
RequestContext, default:Depends(ContextDependency)) –
- Return type: