The Forms Module

The Forms Module

class openstack_auth.forms.DummyAuth(user_id)[source]

A dummy Auth object

It is needed for _KeystoneAdapter to get the user_id from, but otherwise behaves as if it doesn’t exist (is falsy).

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.

clean()[source]

Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.

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

Form used for changing user’s password without having to log in.

clean()[source]

Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.