FastAPI plugin to enable SSO to most common providers (such as Facebook login, Google login and login via Microsoft Office 365 Account)
Project description
FastAPI SSO
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
Security warning
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.
Support this project
If you'd like to support this project, consider buying me a coffee ☕. I tend to process Pull Requests faster when properly caffeinated 😉.
Supported login providers
Official
- Microsoft
- Spotify
- Fitbit
- Github (credits to Brandl for hint using
accept
header) - generic (see docs)
Contributed
- Kakao (by Jae-Baek Song - thdwoqor)
- Naver (by 1tang2bang92) - 1tang2bang92
- Gitlab (by Alessandro Pischedda) - Cereal84
See Contributing for a guide on how to contribute your own login provider.
Installation
Install using pip
pip install fastapi-sso
Install using poetry
poetry add fastapi-sso
Contributing
If you'd like to contribute and add your specific login provider, please see Contributing file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for fastapi_sso-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2cf5f766de8586ddab56cb5ed61d96e67e6e41f365d8005d5af1d7734d90564 |
|
MD5 | f47f5dbfd511c83ffc25e4f00bf514a9 |
|
BLAKE2b-256 | 03c642d4e672b78cfc929e0fcb212c7ae4f340a814276b27ac8043e0d5763604 |