django-google-sso
Easily add Google Authentication to your Django Projects
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, uses permissive MIT licensing, and solves a common need with minimal configuration. It supports current Python and Django versions and has no known security vulnerabilities. Install it if you need Google OAuth 2.0 authentication in Django Admin and are on Python 3.11+ and Django 5.0+.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11+ and Django 5.0+; Google OAuth credentials (client ID, project ID, secret) must be obtained from Google Console and configured in settings.py.
- Low friction: pure Python wheel with five runtime dependencies (django, google-auth, google-auth-httplib2, google-auth-oauthlib, loguru).
- Active maintenance—last commit 2026-06-17, released 58 days ago.
License · maintenance · safety
MIT (permissive) — MIT license (permissive): you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-06-17 (58 days) · last repo commit 2026-06-17 · 51 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 203,680 downloads/mo, #9,626 on PyPI
Alternatives
Verify before relying
pip install django-google-sso
# settings.py
INSTALLED_APPS = ["django.contrib.messages", "django_google_sso"]
GOOGLE_SSO_CLIENT_ID = "your-client-id"
GOOGLE_SSO_PROJECT_ID = "your-project-id"
GOOGLE_SSO_CLIENT_SECRET = "your-secret"
GOOGLE_SSO_ALLOWABLE_DOMAINS = ["example.com"]
# urls.py
path("google_sso/", include("django_google_sso.urls", namespace="django_google_sso"))
python manage.py migrate- Whether auto-created users receive specific roles or permissions by default beyond basic authentication.
- Support for custom user model backends beyond Django's default User model.
- Performance characteristics with high-volume concurrent logins or token refresh scenarios.
What it is and what it does
Django Google SSO is a Django authentication backend that integrates Google OAuth 2.0 login into your Django Admin interface. It adds a "Login with Google" button to the admin login page with minimal configuration—just add the app to INSTALLED_APPS, configure your Google OAuth credentials, and run migrations. The package handles the full OAuth 2.0 flow including PKCE support, and can automatically create Django users from email addresses in allowable domains.
The package depends on django, google-auth, google-auth-httplib2, google-auth-oauthlib, and loguru. It requires Python 3.11+ and Django 5.0 or later. It works with popular Django Admin skins like Grappelli and Jazzmin. No template modifications are needed—the login button integrates directly into the standard Django Admin login page.
Use it for
- Add Google login to a Django Admin interface for team members with corporate Google Workspace accounts.
- Auto-provision Django users from a specific email domain without manual account creation.
- Replace password-based admin authentication with OAuth 2.0 for improved security and compliance.
- Integrate Google SSO into a Django project that already uses Grappelli or Jazzmin admin skins.
- Enable single sign-on for a multi-tenant Django application using Google accounts as the identity provider.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, uses permissive MIT licensing, and solves a common need with minimal configuration. It supports current Python and Django versions and has no known security vulnerabilities. Install it if you need Google OAuth 2.0 authentication in Django Admin and are on Python 3.11+ and Django 5.0+.
Install
django-google-sso on PyPI
Before you install
Low friction: pure Python wheel with five runtime dependencies (django, google-auth, google-auth-httplib2, google-auth-oauthlib, loguru). Active maintenance—last commit 2026-06-17, released 58 days ago. Requires Python 3.11+ and Django 5.0+; older versions unsupported.
Requires Python 3.11+ and Django 5.0+; Google OAuth credentials (client ID, project ID, secret) must be obtained from Google Console and configured in settings.py.
License in practice
MIT license (permissive): you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install django-google-sso
# settings.py
INSTALLED_APPS = ["django.contrib.messages", "django_google_sso"]
GOOGLE_SSO_CLIENT_ID = "your-client-id"
GOOGLE_SSO_PROJECT_ID = "your-project-id"
GOOGLE_SSO_CLIENT_SECRET = "your-secret"
GOOGLE_SSO_ALLOWABLE_DOMAINS = ["example.com"]
# urls.py
path("google_sso/", include("django_google_sso.urls", namespace="django_google_sso"))
python manage.py migrate
Verify before relying
- Whether auto-created users receive specific roles or permissions by default beyond basic authentication.
- Support for custom user model backends beyond Django's default User model.
- Performance characteristics with high-volume concurrent logins or token refresh scenarios.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesdjangogoogle-authgoogle-auth-httplib2google-auth-oauthlibloguru |
| Maintenance | Actively maintained 58 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 203,680 / month, #9,626 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: PluginsFramework :: DjangoFramework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: Developers |
Evidence: django_google_sso-10.0.0-py3-none-any.whl
Tags
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 google authentication”
- django-google-ssoAdds Google OAuth 2.0 authentication to Django projects with a…
- django-authlibProvides passwordless authentication for Django using email-based…
- django-two-factor-authAdds complete two-factor authentication to Django projects,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also django-auth-adfs · django-authlib · fastapi-sso · django-loginas · google-auth-oauthlib · grafana-django-saml2-auth · streamlit-authenticator · gcs-oauth2-boto-plugin · google-oauth · django-oauth-toolkit