verified_oidc_token#

async gafaelfawr.dependencies.auth.verified_oidc_token(context=Depends(ContextDependency))#

Require that a request be authenticated with an OpenID Connect token.

Raises:

fastapi.HTTPException – Raised if no token is provided or if the token is not valid. Contains an authorization challenge.

Parameters:

context (RequestContext, default: Depends(ContextDependency)) –

Return type:

OIDCVerifiedToken