auth_dependency#

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

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(Ellipsis)) –

Return type:

str