ADFS Authentication for Django¶
A Django authentication backend for Microsoft ADFS and Azure AD
Free software: BSD License
Homepage: https://github.com/snok/django-auth-adfs
Documentation: http://django-auth-adfs.readthedocs.io/
Features¶
Integrates Django with Active Directory on Windows 2012 R2, 2016 or Azure AD in the cloud.
Provides seamless single sign on (SSO) for your Django project on intranet environments.
Auto creates users and adds them to Django groups based on info received from ADFS.
Django Rest Framework (DRF) integration: Authenticate against your API with an ADFS access token.
Contents¶
- Installation
- OAuth2 and ADFS explained
- Settings Reference
- AUDIENCE
- BLOCK_GUEST_USERS
- BOOLEAN_CLAIM_MAPPING
- CA_BUNDLE
- CLAIM_MAPPING
- CLIENT_ID
- CLIENT_SECRET
- CONFIG_RELOAD_INTERVAL
- CREATE_NEW_USERS
- DISABLE_SSO
- JWT_LEEWAY
- CUSTOM_FAILED_RESPONSE_VIEW
- GROUP_CLAIM
- GROUPS_CLAIM
- GROUP_TO_FLAG_MAPPING
- GUEST_USERNAME_CLAIM
- LOGIN_EXEMPT_URLS
- MIRROR_GROUPS
- RELYING_PARTY_ID
- RESOURCE
- RETRIES
- SCOPES
- SERVER
- SETTINGS_CLASS
- TENANT_ID
- TIMEOUT
- USERNAME_CLAIM
- VERSION
- PROXIES
- ADFS Config Guides
- Login Middleware
- Rest Framework integration
- Demo
- Troubleshooting
- Frequently Asked Questions
- Why am I always redirected to
/accounts/profile/
after login? - How do I store additional info about a user?
- I’m receiving an
SSLError: CERTIFICATE_VERIFY_FAILED
error. - I’m receiving an
KeyError: 'upn'
error when authenticating against Azure AD. - Why am I prompted for a username and password in Chrome/Firefox?
- Why is a user added and removed from the same group on every login?
- The redirect_uri starts with HTTP, while my site is HTTPS only.
- I cannot get it working!
- Why am I always redirected to
- Contributing