get_logout¶
-
gafaelfawr.handlers.logout.
get_logout
(request: aiohttp.web_request.Request) → aiohttp.web_response.Response¶ Log out and redirect the user.
The user is redirected to the URL given in the rd parameter, if any, and otherwise to the after_logout_url configuration setting.
Parameters: request ( aiohttp.web.Request
) – Incoming request.Returns: response – The response. Return type: aiohttp.web.Response
Raises: aiohttp.web.HTTPException
– Redirect the user to the desired destination, or return an error if the requested redirect URL is not valid.