The horizon.views.auth_forms ModuleΒΆ

Forms used for Horizon’s auth mechanisms.

class horizon.views.auth_forms.Login(*args, **kwargs)[source]

Bases: horizon.forms.base.SelfHandlingForm

Form used for logging in a user.

Handles authentication with Keystone, choosing a tenant, and fetching a scoped token token for that tenant. Redirects to the URL returned by horizon.get_user_home() if successful.

Subclass of SelfHandlingForm.

Login.base_fields = {'method': <django.forms.fields.CharField object at 0xa1a7eac>, 'region': <django.forms.fields.ChoiceField object at 0xa4553cc>, 'username': <django.forms.fields.CharField object at 0xa65b98c>, 'password': <django.forms.fields.CharField object at 0xa65b9ec>}
Login.handle(request, data)[source]
Login.media
class horizon.views.auth_forms.LoginWithTenant(*args, **kwargs)[source]

Bases: horizon.views.auth_forms.Login

Exactly like Login but includes the tenant id as a field so that the process of choosing a default tenant is bypassed.

LoginWithTenant.base_fields = {'method': <django.forms.fields.CharField object at 0xa1a7eac>, 'region': <django.forms.fields.ChoiceField object at 0xa65ba0c>, 'username': <django.forms.fields.CharField object at 0xa65bacc>, 'password': <django.forms.fields.CharField object at 0xa65b9ec>, 'tenant': <django.forms.fields.CharField object at 0xa65bb2c>}
LoginWithTenant.media

Previous topic

The horizon.views Module

Next topic

The horizon.views.auth Module

This Page