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:
Please note that versions preceding 0.7.0
had a security vulnerability.
The SSO instance could share state between requests, which could lead to security issues.
Please update to 0.7.0
or newer.
Also, the preferred way of using the SSO instances is to use with
statement, which will ensure the state is cleared.
See example below.
If you'd like to support this project, consider buying me a coffee ☕. I tend to process Pull Requests faster when properly caffeinated 😉.
- Microsoft
- Spotify
- Fitbit
- Github (credits to Brandl for hint using
accept
header) - generic (see docs)
- Notion
- Twitter (X)
- Kakao (by Jae-Baek Song - thdwoqor)
- Naver (by 1tang2bang92) - 1tang2bang92
- Gitlab (by Alessandro Pischedda) - Cereal84
- Line (by Jimmy Yeh) - jimmyyyeh
- LinkedIn (by Alessandro Pischedda) - Cereal84
- Yandex (by Akim Faskhutdinov) – akimrx
See Contributing for a guide on how to contribute your own login provider.
pip install fastapi-sso
poetry add fastapi-sso
If you'd like to contribute and add your specific login provider, please see Contributing file.