OpenID Connect authentication support for Django
This is a Django login view that authenticates against an OpenID Connect Authentication Server.
Use it if you own a single Authentication Server that you want to share between multiple apps.
What is OpenID Connect?
It’s a OAuth2-based standard for authentication in applications.
It can be used for social logins (but we recommend Aiakos if you need more than one), and for setting up Single Sign-On into multiple services hosted by the same company. In the last case, it somewhat supersedes LDAP, as with OIDC people are entering their credentials only into the views served by the Authentication Server, and not into all the company’s applications.
- Python 2.7 / 3.5+
- Django 1.8+
pip install django-auth-oidc
INSTALLED_APPS += ['django_auth_oidc']
urlpatterns += [ url(r'^auth/', include('django_auth_oidc.urls')), ]
- AUTH_SCOPE (default: [‘openid’]) - list of scopes to request from the auth server
- AUTH_GET_USER_FUNCTION (default: ‘django_auth_oidc:get_user_by_username’) - name of a function that takes the user info dict, and returns an user object representing that user; note that it should set the user.backend attribute.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|django_auth_oidc-0.4.5-py2.py3-none-any.whl (7.0 kB) Copy SHA256 hash SHA256||Wheel||py2.py3|
|django-auth-oidc-0.4.5.tar.gz (5.1 kB) Copy SHA256 hash SHA256||Source||None|