Settings

Core Settings

django.conf.settings.SITE_URL

Default: No default

Domain and protocol used to access your site. BrowserID uses this value to determine if an assertion was meant for your site.

Note that this does not have to be a publicly accessible URL, so local URLs like localhost:8000 or 127.0.0.1 are acceptable as long as they match what you are using to access your site.

Redirect URLs

django.conf.settings.LOGIN_REDIRECT_URL

Default: '/accounts/profile'

Path to redirect to on successful login. If you don’t specify this, the default Django value will be used.

django.conf.settings.LOGIN_REDIRECT_URL_FAILURE

Default: '/'

Path to redirect to on an unsuccessful login attempt.

django.conf.settings.LOGOUT_REDIRECT_URL

Default: '/'

Path to redirect to on logout.

Customizing the Login Popup

django.conf.settings.BROWSERID_REQUEST_ARGS

Default: {}

Controls the arguments passed to navigator.id.request, which are used to customize the login popup box. To see a list of valid keys and what they do, check out the navigator.id.request documentation.

Customizing the Verify View

django.conf.settings.BROWSERID_CREATE_USER

Default: True

If True or False, enables or disables automatic user creation during authentication.

If set to a string, it is treated as an import path pointing to a custom user creation function. See Automatic Account Creation for more information.

django.conf.settings.BROWSERID_DISABLE_SANITY_CHECKS

Default: False

Controls whether the Verify view performs some helpful checks for common mistakes. Useful if you’re getting warnings for things you know aren’t errors.

Using a Different Identity Provider

django.conf.settings.BROWSERID_VERIFICATION_URL

Default: 'https://browserid.org/verify

Defines the URL for the BrowserID verification service to use.

django.conf.settings.BROWSERID_SHIM

Default:https://login.persona.org/include.js

The URL to use for the BrowserID JavaScript shim.

Customizing Verification

django.conf.settings.BROWSERID_DISABLE_CERT_CHECK

Default: False

Disables SSL certificate verification during BrowserID verification. Never disable this in production!

django.conf.settings.BROWSERID_CACERT_FILE

Default: None

CA cert file used during validation. If none is provided, the default file included with requests is used.

Project Versions

Table Of Contents

Previous topic

Advanced Usage

Next topic

Troubleshooting

This Page