auth_delegated_token_dependency#

async safir.dependencies.gafaelfawr.auth_delegated_token_dependency(x_auth_request_token)#

Retrieve Gafaelfawr delegated token from HTTP headers.

Intended for use with applications protected by Gafaelfawr, this retrieves a delegated token from headers added to the incoming request by the Gafaelfawr auth_request NGINX subhandler. The delegated token can be used to make requests to other services on the user’s behalf. See the Gafaelfawr documentation for more details.

Parameters:

x_auth_request_token (str) –

Return type:

str