The horizon.views.auth ModuleΒΆ

class horizon.views.auth.LoginView(**kwargs)[source]

Bases: horizon.forms.views.ModalFormView

Logs in a user and redirects them to the URL specified by horizon.get_user_home().

LoginView.form_class

alias of Login

LoginView.get_context_data(**kwargs)[source]
LoginView.get_initial()[source]
horizon.views.auth.logout(request)[source]

Clears the session and logs the current user out.

horizon.views.auth.switch_tenants(request, tenant_id)[source]

Swaps a user from one tenant to another using the unscoped token from Keystone to exchange scoped tokens for the new tenant.

horizon.views.auth.user_home(request)[source]

Reversible named view to direct a user to the appropriate homepage.

Previous topic

The horizon.views Module

Next topic

The horizon.views.auth_forms Module

This Page