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)
  • Notion
  • Twitter (X)

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.13.1.tar.gz (12.8 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.13.1-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_sso-0.13.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1016-azure

File hashes

Hashes for fastapi_sso-0.13.1.tar.gz
Algorithm Hash digest
SHA256 8c78f8494174b5f53ae1190924901dc9645da983f156a971b0f6f6a390794dc5
MD5 106192c11a255216066b35df825054bf
BLAKE2b-256 27828c32d23e50e33043e44f02ec38ef21f58addb7c7590975559f33e27d3051

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastapi_sso-0.13.1-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1016-azure

File hashes

Hashes for fastapi_sso-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e8aed92334ffb68f023d9583a04fa9e164befcfb262780f4ab6fe32e5cf8320
MD5 9c4864584c56b7f141610c83d5bbb839
BLAKE2b-256 22f97cee7bd78ea50615090da461b39f96074d335a11e1a0bf229db5f899f4e0

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