$npx skillfedfor your agent

fastapi-sso

FastAPI plugin to enable SSO to most common providers (such as Facebook login, Google login and login via Microsoft Office 365 Account)

Worth itPyPI WWW/HTTPReleased Jun 20267.0M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — fastapi_sso-0.21.1-py3-none-any.whl
v0.21.1 · released 2026-06-22 · Python <4.0,>=3.10 · 6 runtime deps: fastapi, httpx, oauthlib, pydantic, pyjwt, typing-extensions

Yes. This package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. It solves a common authentication problem with broad provider support. The recent security fixes (state validation in 0.19.0, race condition fix in 0.16.0) show responsive maintenance. Use it if you need OAuth SSO in FastAPI and are willing to adopt the async context manager pattern.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires async context manager (async with) as of version 0.16.0; synchronous with is deprecated.
  • Must configure OAuth credentials for your chosen provider.
  • Low friction install with six stable runtime dependencies.

License · maintenance · safety

MIT (permissive) — MIT license (permissive) means you can use this in commercial and proprietary projects with minimal restrictions—just include the license notice.

last release 2026-06-22 (53 days) · last repo commit 2026-08-10 · 482 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,026,830 downloads/mo, #1,796 on PyPI

Verify before relying

pip install fastapi-sso

from fastapi_sso.fastapi_sso import FastAPISSOBase

# Configure SSO with a provider (e.g., Google)
sso = FastAPISSOBase(client_id="...", client_secret="...", redirect_url="...")

# In your route handler:
async with sso:
    user_info = await sso.verify_and_process(request)
  • Whether all listed providers (Google, Facebook, Microsoft, Spotify, Fitbit, Github, Notion, Twitter, and contributed providers) are equally well-tested and maintained.
  • Performance characteristics and rate-limiting behavior when handling high-concurrency login flows.
  • Whether the pluggable server-side state store mentioned for version 1.0.0 is already available or still planned.
Same gist for agents: .md · .json

What it is and what it does

FastAPI SSO is a FastAPI plugin that integrates OAuth-based single sign-on (SSO) authentication into your application. It abstracts away the complexity of OAuth flows and lets you add "Login with Google," "Login with Facebook," "Login with Microsoft," and many other provider buttons to your backend with minimal code. The package handles OAuth state validation, token exchange, and user identity verification.

The library supports both official providers (Google, Microsoft, Facebook, Spotify, Fitbit, Github, Notion, Twitter) and community-contributed providers (Kakao, Naver, Gitlab, Line, LinkedIn, Yandex, and others). It uses httpx for HTTP requests, oauthlib for OAuth protocol handling, and pyjwt for JWT token processing. As of version 0.16.0, it requires async context managers to prevent race conditions in concurrent login scenarios, and version 0.19.0 fixed a critical CSRF vulnerability by adding proper OAuth state validation.

Use it for

  • Add a "Login with Google" button to a FastAPI web application without implementing OAuth from scratch.
  • Migrate user authentication from a custom system to federated identity using multiple social providers.
  • Build a multi-tenant SaaS platform where users can sign up via their existing Google or Microsoft account.
  • Implement passwordless authentication by delegating identity verification to trusted OAuth providers.
  • Support enterprise login via Microsoft Office 365 accounts in an internal FastAPI application.

Worth the install?

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

Worth it

Yes.

This package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. It solves a common authentication problem with broad provider support. The recent security fixes (state validation in 0.19.0, race condition fix in 0.16.0) show responsive maintenance. Use it if you need OAuth SSO in FastAPI and are willing to adopt the async context manager pattern.

Install

fastapi-sso on PyPI

Before you install

Low friction install with six stable runtime dependencies. Actively maintained with a recent release 53 days ago; repo shows 482 stars and last commit on 2026-08-10. Requires Python 3.10 or later.

Requires async context manager (async with) as of version 0.16.0; synchronous with is deprecated. Must configure OAuth credentials for your chosen provider.

License in practice

MIT license (permissive) means you can use this in commercial and proprietary projects with minimal restrictions—just include the license notice.

Quickstart

pip install fastapi-sso

from fastapi_sso.fastapi_sso import FastAPISSOBase

# Configure SSO with a provider (e.g., Google)
sso = FastAPISSOBase(client_id="...", client_secret="...", redirect_url="...")

# In your route handler:
async with sso:
    user_info = await sso.verify_and_process(request)

Verify before relying

  • Whether all listed providers (Google, Facebook, Microsoft, Spotify, Fitbit, Github, Notion, Twitter, and contributed providers) are equally well-tested and maintained.
  • Performance characteristics and rate-limiting behavior when handling high-concurrency login flows.
  • Whether the pluggable server-side state store mentioned for version 1.0.0 is already available or still planned.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
fastapihttpxoauthlibpydanticpyjwttyping-extensions
MaintenanceActively maintained 53 days since the last release
Last repo commit
First released
Downloads7,026,830 / month, #1,796 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: fastapi_sso-0.21.1-py3-none-any.whl

Tags

Capabilities
fastapi oauth loginsso authentication providergoogle facebook microsoft loginfastapi oauth2 integrationsocial login fastapioauth state validationfastapi identity provider
Topics
oauth-ssoauthenticationidentity-provider
PyPI keywords
fastapissooauthgooglefacebookspotifylinkedin

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 › “fastapi oauth login”

  • fastapi-ssoFastAPI plugin that adds single sign-on (SSO) authentication to your…
  • stytchA Python client library for integrating Stytch's authentication and…
  • Flask-DanceFlask-Dance simplifies OAuth authentication in Flask applications by…

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

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also fastapi-auth0 · django-google-sso · oauthenticator · facebook-sdk · fastapi-users · fastapi-login · django-allauth · social-auth-app-django · django-auth-adfs · aioauth