$npx skillfedfor your agent

django-auth-adfs

A Django authentication backend for Microsoft ADFS and AzureAD

With conditionsPyPI Python ModulesReleased Jan 2026147.8K downloads / moBSD-1-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — django_auth_adfs-1.16.0-py3-none-any.whl
v1.16.0 · released 2026-01-08 · Python <4.0,>=3.9 · 5 runtime deps: django, requests, urllib3, cryptography, PyJWT

Yes, if you are building a Django application in an organization using ADFS or Azure AD for identity management. The package is production-stable, actively maintained, has no known vulnerabilities, and handles the complex OAuth2 and token validation logic so you don't have to. Install it only if your deployment environment has an ADFS or Azure AD endpoint already configured; it is not useful for standalone Django apps or those using other identity providers.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires ADFS or Azure AD server endpoint configured with a client ID and relying party trust; certificate bundle path may be needed for on-premises ADFS.
  • Low install friction with a pure-Python wheel distribution.
  • Actively maintained as of 2026-01-08 with recent commits, and supports current Django versions (4.2 through 6.0) and Python 3.9–3.14.

License · maintenance · safety

BSD-1-Clause (permissive) — BSD-1-Clause is a permissive open-source license with minimal restrictions on use, modification, and distribution in both commercial and private projects.

last release 2026-01-08 (218 days) · last repo commit 2026-04-08 · 299 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 147,754 downloads/mo, #11,052 on PyPI

Verify before relying

pip install django-auth-adfs

# In settings.py:
AUTHENTICATION_BACKENDS = ('django_auth_adfs.backend.AdfsAuthCodeBackend',)
INSTALLED_APPS = (..., 'django_auth_adfs')
AUTH_ADFS = {
    'SERVER': 'adfs.yourcompany.com',
    'CLIENT_ID': 'your-client-id',
    'RELYING_PARTY_ID': 'your-rpt-name',
}

# In urls.py:
path('oauth2/', include('django_auth_adfs.urls'))
  • Whether the package works with Django versions beyond 6.0 or Python 3.14 in production (classifiers list them but latest release is 2026-01-08).
  • Performance characteristics when handling large numbers of concurrent ADFS authentication requests.
  • Compatibility with non-standard ADFS claim mappings or custom identity providers.
Same gist for agents: .md · .json

What it is and what it does

django-auth-adfs is a Django authentication backend that delegates user login to Microsoft ADFS (Active Directory Federation Services) or Azure AD. Instead of storing passwords in Django, it redirects users through an OAuth2 flow to your organization's identity provider, then creates or updates Django user accounts based on claims returned from ADFS. It handles the full redirect cycle—login initiation, ADFS callback, token validation via cryptography and PyJWT, and automatic group assignment—so developers can focus on application logic rather than directory integration.

The package is designed for intranet and cloud environments where centralized identity management is already in place. It depends on django, requests, urllib3, cryptography, and PyJWT to manage HTTP communication, certificate validation, and token verification. Configuration is done through Django settings, and it provides optional middleware to enforce login across your application and template tags for login/logout links.

Use it for

  • Enterprise Django applications where users authenticate via corporate Active Directory or Azure AD without storing passwords in the app.
  • Intranet portals that need single sign-on (SSO) so employees log in once to ADFS and automatically gain access to Django apps.
  • Multi-tenant SaaS platforms using Azure AD for customer organization authentication and automatic user provisioning.
  • Django REST Framework APIs that accept ADFS access tokens for stateless, federated authentication.
  • Organizations migrating from on-premises ADFS to Azure AD while keeping existing Django applications.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building a Django application in an organization using ADFS or Azure AD for identity management.

The package is production-stable, actively maintained, has no known vulnerabilities, and handles the complex OAuth2 and token validation logic so you don't have to. Install it only if your deployment environment has an ADFS or Azure AD endpoint already configured; it is not useful for standalone Django apps or those using other identity providers.

Install

django-auth-adfs on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained as of 2026-01-08 with recent commits, and supports current Django versions (4.2 through 6.0) and Python 3.9–3.14.

Requires ADFS or Azure AD server endpoint configured with a client ID and relying party trust; certificate bundle path may be needed for on-premises ADFS.

License in practice

BSD-1-Clause is a permissive open-source license with minimal restrictions on use, modification, and distribution in both commercial and private projects.

Quickstart

pip install django-auth-adfs

# In settings.py:
AUTHENTICATION_BACKENDS = ('django_auth_adfs.backend.AdfsAuthCodeBackend',)
INSTALLED_APPS = (..., 'django_auth_adfs')
AUTH_ADFS = {
    'SERVER': 'adfs.yourcompany.com',
    'CLIENT_ID': 'your-client-id',
    'RELYING_PARTY_ID': 'your-rpt-name',
}

# In urls.py:
path('oauth2/', include('django_auth_adfs.urls'))

Verify before relying

  • Whether the package works with Django versions beyond 6.0 or Python 3.14 in production (classifiers list them but latest release is 2026-01-08).
  • Performance characteristics when handling large numbers of concurrent ADFS authentication requests.
  • Compatibility with non-standard ADFS claim mappings or custom identity providers.

Package facts

LicenseBSD-1-Clause permissive
Python supportSupports the current Python release <4.0,>=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
djangorequestsurllib3cryptographyPyJWT
MaintenanceActively maintained 218 days since the last release
Last repo commit
First released
Downloads147,754 / month, #11,052 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersIntended Audience :: End Users/DesktopLicense :: OSI ApprovedLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Internet :: WWW/HTTP :: WSGITopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules

Evidence: django_auth_adfs-1.16.0-py3-none-any.whl

Tags

Capabilities
django adfs authenticationazure ad django loginactive directory django ssodjango oauth2 adfsmicrosoft adfs django backend
Topics
authenticationenterprise-identitysso
PyPI keywords
djangoauthenticationadfsazureadoauth2

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “django adfs authentication”

  • django-auth-adfsIntegrates Django applications with Microsoft ADFS and Azure AD for…
  • djangosaml2Integrates SAML2 single sign-on authentication into Django…
  • requests-negotiate-sspiAdds HTTP Negotiate authentication (Kerberos/NTLM single-sign-on) to…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also django-google-sso · django-authlib · django-loginas · django-magiclink · grafana-django-saml2-auth · adal · dj-rest-auth · identity · fastapi-azure-auth · fastapi-auth0