skillfed

django-google-sso

Easily add Google Authentication to your Django Projects

django-google-sso v10.0.0 203.7K downloads/30d#9,626 on PyPI51
Permissive license MIT Active released

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

Adds Google OAuth 2.0 authentication to Django projects with a customizable login button for the Django Admin interface, supporting PKCE and auto-user creation from allowable domains.

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

pip

pip install django-google-sso

uv

uv add django-google-sso

poetry

poetry add django-google-sso

Installing django-google-sso

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.

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

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.

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 — django, google-auth, google-auth-httplib2, google-auth-oauthlib, loguru
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)

Evidence: django_google_sso-10.0.0-py3-none-any.whl

Keywords: django, google, sso

Development Status :: 4 - BetaEnvironment :: PluginsFramework :: DjangoFramework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: Developers

Tags

django google authenticationgoogle sso djangodjango admin google loginoauth2 django googledjango google oauthgoogle login button djangodjango authentication google
oauth2django-adminsso

More Dynamic Content packages

MarkupSafe

MarkupSafe provides a text object that escapes…

permissive · top 100 on PyPI

Jinja2

Jinja2 is a templating engine that renders…

permissive · top 100 on PyPI

soupsieve

Soupsieve is a CSS selector library designed to…

permissive · top 100 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

Flask

Flask is a lightweight WSGI web application…

permissive · top 1,000 on PyPI

Mako

Mako compiles Python-embedded templates into…

permissive · top 1,000 on PyPI

django-auth-adfs

Integrates Django applications with Microsoft…

permissive · top 15,000 on PyPI

django-authlib

Provides passwordless authentication for Django…

permissive · top 15,000 on PyPI

fastapi-sso

FastAPI plugin that adds single sign-on (SSO)…

permissive · top 5,000 on PyPI

django-loginas

Adds a "Log in as user" button to the Django…

permissive · top 5,000 on PyPI

google-auth-oauthlib

Integrates oauthlib with google-auth to handle…

permissive · top 1,000 on PyPI

grafana-django-saml2-auth

A compatibility shim that redirects to…

permissive · top 15,000 on PyPI

streamlit-authenticator

Adds user authentication and access control to…

permissive · top 15,000 on PyPI

gcs-oauth2-boto-plugin

Provides OAuth 2.0 authentication for Google…

permissive · top 15,000 on PyPI

google-oauth

Implements Google OAuth2 authentication for…

permissive · top 15,000 on PyPI

django-oauth-toolkit

Adds OAuth2 authorization server capabilities…

permissive · top 5,000 on PyPI