Jump to >

reviewboard.accounts.forms.auth

class ActiveDirectorySettingsForm(siteconfig, *args, **kwargs)[source]

Bases: djblets.siteconfig.forms.SiteSettingsForm

A form for configuring the Active Directory authentication backend.

load()[source]

Load the data for the form.

class Meta[source]
title = _(u’Active Directory Authentication Settings’)[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 StandardAuthSettingsForm(siteconfig, *args, **kwargs)[source]

Bases: djblets.siteconfig.forms.SiteSettingsForm

A form for configuring the builtin authentication backend.

clean_recaptcha_public_key()[source]

Validate that the reCAPTCHA public key is specified if needed.

clean_recaptcha_private_key()[source]

Validate that the reCAPTCHA private key is specified if needed.

class Meta[source]
title = _(u’Registration Settings’)[source]
fieldsets = ((None, {u’fields’: (u’auth_enable_registration’,)}), (_(u’reCAPTCHA Settings’), {u’fields’: (u’auth_registration_show_captcha’, u’recaptcha_public_key’, u’recaptcha_private_key’)}))[source]
class HTTPBasicSettingsForm(siteconfig, *args, **kwargs)[source]

Bases: djblets.siteconfig.forms.SiteSettingsForm

A form for configuring the HTTP Digest authentication backend.

class Meta[source]
title = _(u’HTTP Digest Authentication Settings’)[source]
class LDAPSettingsForm(siteconfig, *args, **kwargs)[source]

Bases: djblets.siteconfig.forms.SiteSettingsForm

A form for configuring the LDAP authentication backend.

load()[source]

Load the data for the form.

class Meta[source]
title = _(u’LDAP Authentication Settings’)[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 LegacyAuthModuleSettingsForm(siteconfig, *args, **kwargs)[source]

Bases: djblets.siteconfig.forms.SiteSettingsForm

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

load()[source]

Load the data for the form.

save()[source]

Save the form.

class Meta[source]
title = _(u’Legacy Authentication Module Settings’)[source]
save_blacklist = (u’custom_backends’,)[source]
class NISSettingsForm(siteconfig, *args, **kwargs)[source]

Bases: djblets.siteconfig.forms.SiteSettingsForm

A form for configuring the NIS authentication backend.

class Meta[source]
title = _(u’NIS Authentication Settings’)[source]
class X509SettingsForm(siteconfig, *args, **kwargs)[source]

Bases: djblets.siteconfig.forms.SiteSettingsForm

A form for configuring the X509 certificate authentication backend.

clean_auth_x509_username_regex()[source]

Validate that the specified regular expression is valid.

class Meta[source]
title = _(u’X.509 Client Certificate Authentication Settings’)[source]
class AuthenticationForm(request=None, *args, **kwargs)[source]

Bases: django.contrib.auth.forms.AuthenticationForm

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

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.