Skip to content
An OpenID Connect Client for Django.
Branch: master
Clone or download
Latest commit 336a0c7 Nov 24, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
oidc_auth FIX add tests Mar 2, 2016
.gitignore v0.0.1 Aug 26, 2014
LICENSE
README.md README updated Apr 4, 2014
TODO.txt TODO updated Apr 4, 2014
__init__.py adiciona init para poder ser acessado como pacote Apr 14, 2014
manage.py
requirements.txt
settings.py n precisa do south para testes May 27, 2015
setup.py Bump version to 0.0.11 Mar 2, 2016
tox.ini testes com tox May 27, 2015
urls.py admin+staticfiles enabled for development Apr 4, 2014
views.py Info about logged user added to response Apr 4, 2014

README.md

django-oidc-auth

An OpenID Connect Client for Django.

HOW TO USE

First things first, so:

$ pip install django-oidc-auth

Then add this to your settings:

INSTALLED_APPS = (
    # ...
    'oidc_auth',
    # ...
)

# Put all custom configurations inside this dict
OIDC_AUTH = {
    'SCOPES': ('openid', 'preferred_username', 'email', 'profile'),
}

LOGIN_URL = 'oidc-login'
LOGIN_REDIRECT_URL = '/'

AUTHENTICATION_BACKENDS = (
    'oidc_auth.auth.OpenIDConnectBackend',
    'django.contrib.auth.backends.ModelBackend',
)

Finally, add this to your urls.py:

urlpatterns = patterns('your.views',
    # ...
    url(r'oidc/', include('oidc_auth.urls')),
)

Run python manage.py migrate and you're ready (kinda).

You can’t perform that action at this time.