The Views Module

openstack_auth.views.delete_token(endpoint, token_id)[source]

Delete a token.

openstack_auth.views.login(request, *args, **kwargs)[source]

Logs a user in using the Login form.

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_region(request, *args, **kwargs)[source]

Switches the user’s region for all services except Identity service.

The region will be switched if the given region is one of the regions available for the scoped project. Otherwise the region is not switched.

openstack_auth.views.websso(request, *args, **kwargs)[source]

Logs a user in using a token from Keystone’s POST.

Previous topic

The User Class

Next topic

The Forms Module

Project Source

This Page