Horizon Views
Horizon ships with a number of pre-built views which are used within
Horizon and can also be reused in your applications.
Auth
-
class horizon.views.auth.LoginView(**kwargs)[source]
Logs in a user and redirects them to the URL specified by
horizon.get_user_home().
-
form_class
alias of Login
-
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.