Asynchronous OAuth 2.0 framework for Python 3.
Project description
Asynchronous OAuth 2.0 framework for Python 3
aioauth
implements OAuth 2.0 protocol and can be used in asynchronous frameworks like FastAPI / Starlette, aiohttp. It can work with any databases like MongoDB
, PostgreSQL
, MySQL
and ORMs like gino, sqlalchemy or databases over simple BaseStorage interface.
Why this project exists?
There are few great OAuth frameworks for Python like oauthlib and authlib, but they do not support asyncio and rewriting these libraries to asyncio is a significant challenge (see issues here and here).
Supported RFCs
- The OAuth 2.0 Authorization Framework
- OAuth 2.0 Token Introspection
- Proof Key for Code Exchange by OAuth Public Clients
- OpenID support
Installation
python -m pip install aioauth
FastAPI
FastAPI integration stored on separated aioauth-fastapi repository and can be installed via the command:
python -m pip install aioauth[fastapi]
aioauth-fastapi repository contains demo example which I recommend to look.
API Reference and User Guide
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
File details
Details for the file aioauth-1.7.0.tar.gz
.
File metadata
- Download URL: aioauth-1.7.0.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/8.5.0 pkginfo/1.11.2 requests/2.32.3 requests-toolbelt/1.0.0 tqdm/4.66.5 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2fae8c12afdabf53a428f354dfe3326e1152104f887886a72904d0916f88892 |
|
MD5 | df1a444904f60dd98f4741229945a0a9 |
|
BLAKE2b-256 | fb17a548af2b18889446a94dd57551be1f7a93fdf3af9f90e2d00ee9833f5e3d |
File details
Details for the file aioauth-1.7.0-py2.py3-none-any.whl
.
File metadata
- Download URL: aioauth-1.7.0-py2.py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/8.5.0 pkginfo/1.11.2 requests/2.32.3 requests-toolbelt/1.0.0 tqdm/4.66.5 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c007018c94c97776aa73bba74b8e6f1ee51a4d9ce912d02d193550c2ca5f8d |
|
MD5 | c39d227602ce7cc9db4735ceab5193a3 |
|
BLAKE2b-256 | a30112d90ffb888e583aebde9e0498c172ddbcd3b9c36657c294944e31cfea86 |