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 0x3033d90>, 'region': <django.forms.fields.ChoiceField object at 0x33ecf10>, 'username': <django.forms.fields.CharField object at 0x37de590>, 'password': <django.forms.fields.CharField object at 0x37de5d0>}
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 0x3033d90>, 'region': <django.forms.fields.ChoiceField object at 0x37de750>, 'username': <django.forms.fields.CharField object at 0x37de810>, 'password': <django.forms.fields.CharField object at 0x37de5d0>, 'tenant': <django.forms.fields.CharField object at 0x37de8d0>}
LoginWithTenant.media

Previous topic

The horizon.utils.validators Module

Next topic

The horizon.views Module

This Page