auth_dependency#

async safir.dependencies.gafaelfawr.auth_dependency(x_auth_request_user=Header(PydanticUndefined))#

Retrieve authentication information from HTTP headers.

Intended for use with applications protected by Gafaelfawr, this retrieves authentication information from headers added to the incoming request by the Gafaelfawr auth_request NGINX subhandler.

Parameters:

x_auth_request_user (str, default: Header(PydanticUndefined)) –

Return type:

str