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.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.media

Previous topic

The horizon.views.auth Module

Next topic

The horizon.views.base Module

This Page