reviewboard.accounts.forms.auth¶
-
class
ActiveDirectorySettingsForm(siteconfig, *args, **kwargs)[source]¶ Bases:
djblets.siteconfig.forms.SiteSettingsFormA form for configuring the Active Directory authentication backend.
-
class
Meta[source]¶ -
-
fieldsets= ((None, {u'fields': (u'auth_ad_domain_name', u'auth_ad_use_tls', u'auth_ad_find_dc_from_dns', u'auth_ad_domain_controller')}), (_(u'Access Control Settings'), {u'fields': (u'auth_ad_ou_name', u'auth_ad_group_name')}), (_(u'Advanced Settings'), {u'fields': (u'auth_ad_search_root', u'auth_ad_recursion_depth')}))[source]¶
-
-
class
-
class
StandardAuthSettingsForm(*args, **kwargs)[source]¶ Bases:
djblets.siteconfig.forms.SiteSettingsFormA form for configuring the builtin authentication backend.
-
clean_recaptcha_public_key()[source]¶ Validate that the reCAPTCHA public key is specified if needed.
-
-
class
HTTPBasicSettingsForm(siteconfig, *args, **kwargs)[source]¶ Bases:
djblets.siteconfig.forms.SiteSettingsFormA form for configuring the HTTP Digest authentication backend.
-
class
LDAPSettingsForm(*args, **kwargs)[source]¶ Bases:
djblets.siteconfig.forms.SiteSettingsFormA form for configuring the LDAP authentication backend.
-
class
Meta[source]¶ -
-
fieldsets= ((None, {u'fields': (u'auth_ldap_uri', u'auth_ldap_tls', u'auth_ldap_anon_bind_uid', u'auth_ldap_anon_bind_passwd', u'auth_ldap_base_dn')}), (_(u'User Lookups'), {u'fields': (u'auth_ldap_uid', u'auth_ldap_given_name_attribute', u'auth_ldap_surname_attribute', u'auth_ldap_full_name_attribute', u'auth_ldap_email_attribute', u'auth_ldap_email_domain', u'auth_ldap_uid_mask')}))[source]¶
-
-
class
-
class
LegacyAuthModuleSettingsForm(siteconfig, *args, **kwargs)[source]¶ Bases:
djblets.siteconfig.forms.SiteSettingsFormA form for configuring old-style custom authentication backends.
Newer authentication backends are registered via the extensions framework, but there used to be a method by which users just put in a list of python module paths. This form allows that configuration to be edited.
-
class
NISSettingsForm(siteconfig, *args, **kwargs)[source]¶ Bases:
djblets.siteconfig.forms.SiteSettingsFormA form for configuring the NIS authentication backend.
-
class
X509SettingsForm(siteconfig, *args, **kwargs)[source]¶ Bases:
djblets.siteconfig.forms.SiteSettingsFormA form for configuring the X509 certificate authentication backend.
-
class
AuthenticationForm(request=None, *args, **kwargs)[source]¶ Bases:
django.contrib.auth.forms.AuthenticationFormForm used for user logins.
This extends Django’s built-in AuthenticationForm implementation to allow users to specify their e-mail address in place of their username. In addition, it also tracks the number of failed login attempts for a given time frame, and informs the user whether the maximum number of attempts have been exceeded.
-
clean_username()[source]¶ Validate the ‘username’ field.
In case the given text is not a user found on the system, attempt a look-up using it as an e-mail address and change the user-entered text so that login can succeed.
-
clean()[source]¶ Validate the authentication form.
In case authentication has failed for the given user, Djblets’s rate limiting feature will increment the number of failed login attempts until the maximum number of attempts have been reached. The user will have to wait until the rate limit time period is over before trying again.
Returns: The cleaned data for all fields in the form. Return type: dict Raises: django.core.exceptions.ValidationError– The data in the form was not valid.
-