PBS UUA OpenId Consumer
Project description
Installation
pip install pbs-account-consumer
Configuration
Add pbs_account_consumer to the INSTALLED_APPS section of the settings file.
After installing you need to add a couple of params to your settings.py file.
- Example param values:
OPENID_SSO_SERVER_URL = ‘https://account.pbs.org/cranky’
OPENID_CREATE_USERS = True
OPENID_UPDATE_DETAILS_FROM_SREG = True
OPENID_USE_AS_ADMIN_LOGIN = True
OPENID_ADMIN_LOGIN_TEMPLATE = None
LOGIN_REDIRECT_URL = ‘/’
Add the consumer app to the url routing.
- For example:
Add url(r’^openid/’, include(‘pbs_account_consumer.urls’)) to urls.py in your project.
Add the proper authentication backend to your project.
Add AUTHENTICATION_BACKENDS = (…, ‘pbs_account_consumer.auth.OpenIDBackend’,) to settings.py.
Add the proper login link to the admin login template:
Add pbs_accout_consumer.urls to the main urls.py file of your project.
Make the link point to the login_begin view, as such: {% url login_begin %}
(Optional) If you want to use a custom realm, you have to set the OPENID_CUSTOM_REALM parameter in settings.py:
OPENID_CUSTOM_REALM = ‘https://mysite.com/realm’
Requirments
Python version 2.7 or greater.
Django version 1.3 or greater.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for pbs-account-consumer-1.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a55588d3041799d890aed0fcc557654006a8a1a2068af3d6b054b460c381147 |
|
MD5 | ae26e6baa09d2f888cd8047a88310a26 |
|
BLAKE2b-256 | be79416781133386659518e56a34cf45d0118e7d7d8e4fdfb6158645cc1e5030 |