Jump to >

reviewboard.accounts.forms.auth

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

A form for configuring the Active Directory authentication backend.

load()[source]

Load the data for the form.

class StandardAuthSettingsForm(*args, **kwargs)[source]

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 HTTPBasicSettingsForm(siteconfig, *args, **kwargs)[source]

A form for configuring the HTTP Digest authentication backend.

class LDAPSettingsForm(*args, **kwargs)[source]

A form for configuring the LDAP authentication backend.

load()[source]

Load the data for the form.

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

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 NISSettingsForm(siteconfig, *args, **kwargs)[source]

A form for configuring the NIS authentication backend.

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

A form for configuring the X509 certificate authentication backend.

clean_auth_x509_username_regex()[source]

Validate that the specified regular expression is valid.

class ReviewBoardAuthenticationFormMixin[source]

Mixin for enhancing authentication forms.

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.

class AuthenticationForm(request=None, *args, **kwargs)[source]

Standard authentication form for Review Board.

This is the form used whenever a user is logging into Review Board. It will allow e-mail addresses or usernames for authentication, and will rate limit login attempts.