Skip to main content

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

Supported Python Versions Test coverage Tests Workflow Status Pylint Workflow Status Mypy Workflow Status Black Workflow Status CodeQL Workflow Status PyPi weekly downloads Project License PyPi Version

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 😉.

Buy Me A Coffee

Supported login providers

Official

  • Google
  • Microsoft
  • Facebook
  • Spotify
  • Fitbit
  • Github (credits to Brandl for hint using accept header)
  • generic (see docs)

Contributed

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_sso-0.8.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_sso-0.8.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_sso-0.8.0.tar.gz.

File metadata

  • Download URL: fastapi_sso-0.8.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure

File hashes

Hashes for fastapi_sso-0.8.0.tar.gz
Algorithm Hash digest
SHA256 fa0bf88d90e43af453616e4e79d73c5a5c2f0b5ca347b30fca5b63cb8251d72e
MD5 c902e5806a56b728e9a6b76c3aaca64f
BLAKE2b-256 a42cdf6a3697c4ca18d4499236307eb0d03f03d26230eb81e1c69326a5df9ed9

See more details on using hashes here.

File details

Details for the file fastapi_sso-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: fastapi_sso-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.2.0-1016-azure

File hashes

Hashes for fastapi_sso-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2cf5f766de8586ddab56cb5ed61d96e67e6e41f365d8005d5af1d7734d90564
MD5 f47f5dbfd511c83ffc25e4f00bf514a9
BLAKE2b-256 03c642d4e672b78cfc929e0fcb212c7ae4f340a814276b27ac8043e0d5763604

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page