This documentation covers Review Board 3.0.
You can select a version above or
view the latest documentation.
reviewboard.accounts.backends.x509
X.509 authentication backend.
-
class
X509Backend[source]
Bases: reviewboard.accounts.backends.base.BaseAuthBackend
Authenticate a user from a X.509 client certificate.
The certificate is passed in by the browser. This backend relies on the
X509AuthMiddleware to extract a username field from the client certificate.
-
backend_id = u'x509'[source]
-
name = _(u'X.509 Public Key')[source]
-
settings_form[source]
alias of reviewboard.accounts.forms.auth.X509SettingsForm
-
supports_change_password = True[source]
-
authenticate(x509_field=u'', **kwargs)[source]
Authenticate the user.
This will extract the username from the provided certificate and return
the appropriate User object.
-
clean_username(username)[source]
Validate the ‘username’ field.
This checks to make sure that the contents of the username field are
valid for X509 authentication.
-
get_or_create_user(username, request)[source]
Get an existing user, or create one if it does not exist.