return_url_with_header#
- async gafaelfawr.dependencies.return_url.return_url_with_header(*, rd=None, x_auth_request_redirect=None, context)#
Validate a return URL in an
rdparameter or header.Same as
return_urlexcept also accepts a return URL in theX-Auth-Request-Redirectheader if therdquery parameter was not set.- Returns:
The verified return URL, or
Noneif none was given.- Return type:
- Raises:
InvalidReturnURLError – Raised if the return URL was invalid.
- Parameters:
context (
RequestContext)