The Views Module¶
-
openstack_auth.views.
logout
(request, login_url=None, **kwargs)[source]¶ Logs out the user if he is logged in. Then redirects to the log-in page.
Parameters: - login_url – Once logged out, defines the URL where to redirect after login
- kwargs – see django.contrib.auth.views.logout_then_login extra parameters.
-
openstack_auth.views.
switch
(request, *args, **kwargs)[source]¶ Switches an authenticated user from one project to another.
-
openstack_auth.views.
switch_keystone_provider
(request, *args, **kwargs)[source]¶ Switches the user’s keystone provider using K2K Federation
If keystone_provider is given then we switch the user to the keystone provider using K2K federation. Otherwise if keystone_provider is None then we switch the user back to the Identity Provider Keystone which a non federated token auth will be used.