return_url

async gafaelfawr.dependencies.return_url.return_url(*, rd=None, context)

Validate a return URL in an rd parameter.

Returns:

The verified return URL, or None if none was given.

Return type:

urllib.parse.ParseResult

Raises:

fastapi.HTTPException – An appropriate error if the return URL was invalid.

Parameters: