app.service.login_handlers namespace
Submodules
app.service.login_handlers.default module
- class app.service.login_handlers.default.DefaultLoginHandler(services)
Bases:
LoginHandlerInterface
- async handle_login(request, **kwargs)
Handle login request
- Parameters:
request –
- Returns:
the response/location of where the user is trying to navigate
- Raises:
HTTP exception, such as HTTPFound for redirect, or HTTPUnauthorized
- async handle_login_redirect(request, **kwargs)
Handle login redirect.
- Returns:
login.html template if use_template is set to True in kwargs.
- Raises:
web.HTTPFound – HTTPFound exception to redirect to the ‘/login’ page if use_template is set to False or not included in kwargs.