
Product
Introducing Socket MCP for Claude Desktop
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
FastAPI plugin to enable SSO to most common providers (such as Facebook login, Google login and login via Microsoft Office 365 Account)
FastAPI plugin to enable SSO to most common providers (such as Facebook login, Google login and login via Microsoft Office 365 account).
This allows you to implement the famous Login with Google/Facebook/Microsoft
buttons functionality on your
backend very easily.
Documentation: https://tomasvotava.github.io/fastapi-sso/
Source Code: https://github.com/tomasvotava/fastapi-sso
An awesome demo site was created and is maintained by even awesomer Chris Karvouniaris (@chrisK824). Chris has also posted multiple Medium articles about FastAPI and FastAPI SSO.
Be sure to see his tutorials, follow him and show him some appreciation!
Please see his announcement with all the links.
Quick links for the eager ones:
0.16.0
Update: Race Condition Bug Fix & Context Manager ChangeA race condition bug in the login flow that could, in rare cases, allow one user
to assume the identity of another due to concurrent login requests was recently discovered
by @parikls.
This issue was reported in #186 and has been resolved
in version 0.16.0
.
Details of the Fix:
The bug was mitigated by introducing an async lock mechanism that ensures only one user can attempt the login process at any given time. This prevents race conditions that could lead to unintended user identity crossover.
Important Change:
To fully support this fix, users must now use the SSO instance within an async with
context manager. This adjustment is necessary for proper handling of asynchronous operations.
The synchronous with
context manager is now deprecated and will produce a warning.
It will be removed in future versions to ensure best practices for async handling.
Impact:
This bug could potentially affect deployments with high concurrency or scenarios where multiple users initiate
login requests simultaneously. To prevent potential issues and deprecation warnings, update to
version 0.16.0
or later and modify your code to use the async with context.
Code Example Update:
# Before (deprecated)
with sso:
openid = await sso.verify_and_process(request)
# After (recommended)
async with sso:
openid = await sso.verify_and_process(request)
Thanks to both @parikls and the community for helping me identify and improve the
security of fastapi-sso
. If you encounter any issues or potential vulnerabilities, please report them
immediately so they can be addressed.
For more details, refer to Issue #186 and PR #189.
If you'd like to support this project, consider buying me a coffee ☕. I tend to process Pull Requests faster when properly caffeinated 😉.
accept
header)See Contributing for a guide on how to contribute your own login provider.
pip
pip install fastapi-sso
poetry
poetry add fastapi-sso
If you'd like to contribute and add your specific login provider, please see Contributing file.
FAQs
FastAPI plugin to enable SSO to most common providers (such as Facebook login, Google login and login via Microsoft Office 365 Account)
We found that fastapi-sso demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.