The Forms Module

class openstack_auth.forms.Login(*args, **kwargs)[source]

Form used for logging in a user.

Handles authentication with Keystone by providing the domain name, username and password. A scoped token is fetched after successful authentication.

A domain name is required if authenticating with Keystone V3 running multi-domain configuration.

If the user authenticated has a default project set, the token will be automatically scoped to their default project.

If the user authenticated has no default project set, the authentication backend will try to scope to the projects returned from the user’s assigned projects. The first successful project scoped will be returned.

Inherits from the base django.contrib.auth.forms.AuthenticationForm class for added security features.