Skip to main content

fastapi-oauth2

PyPI Playground Python FastAPI Tests Docs

FastAPI OAuth2 is a middleware-based social authentication mechanism supporting several OAuth2 providers. It leverages the social-core authentication backends and integrates seamlessly with FastAPI applications.

Integration

For integrating the package into an existing FastAPI application, the router with OAuth2 routes and the OAuth2Middleware with particular configs should be added to the application.

from fastapi import FastAPI
from fastapi_oauth2.middleware import OAuth2Middleware
from fastapi_oauth2.router import router as oauth2_router

app = FastAPI()
app.include_router(oauth2_router)
app.add_middleware(OAuth2Middleware, config=OAuth2Config(...))

Contribute

Any contribution is welcome. Always feel free to open an issue or a discussion if you have any questions not covered by the documentation. If you have any ideas or suggestions, please, open a pull request. Your name will shine in our contributors' list. Be proud of what you build!

License

Copyright (C) 2023 Artyom Vancyan. MIT

Metadata

Release files for fastapi-oauth2 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-oauth2 1.5.1
File Size Uploaded Provenance Actions
fastapi_oauth2-1.5.1.tar.gz 17.0 kB Without provenance Details for fastapi_oauth2-1.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-oauth2 1.5.1
File Interpreter ABI Platform Actions
fastapi_oauth2-1.5.1-py3-none-any.whl Python 3 none any Details for fastapi_oauth2-1.5.1-py3-none-any.whl

Total release size: 30.4 kB

Release files / fastapi_oauth2-1.5.1.tar.gz

Download URL fastapi_oauth2-1.5.1.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
df4d4b7760664f0f3eec7c2a0eda750ee81a804f9150105e801e6e27f1c629d3
BLAKE2b-256 checksum
How to use checksums
98369fdbb1f0650f9ea09c638bc215d0a7305357b6c353726bc7c2851f4283f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / fastapi_oauth2-1.5.1-py3-none-any.whl

Download URL fastapi_oauth2-1.5.1-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
778ce55d7e83b9d61780f1726dcb330c532262b75845dc165c9a79603527ed9c
BLAKE2b-256 checksum
How to use checksums
12fbddb5ae41a54106f22e2545f04c64f76084902424ad1b3aec645799b02f7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for fastapi-oauth2 1.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page