fans656's authorization helper
Project description
Overview
Authorization server & library to ease setting up a site (so it can delegate authorization stuff out).
Includes:
- A docker image to run an authorization server (with UI)
- A Python library to be used in your site
Code structure
frontend/ # frontend of auth.fans656.me
fansauth/
server/ # auth server
lib/ # `fansauth` python library for resource server
Development
build-frontend.sh
Resource server usage
from fastapi import FastAPI
from fansauth import auth # <--- import `auth`
app = FastAPI()
app = auth(app) # <--- add authorization to app
@app.get('/foo')
def foo():
return 'hello foo'
See fansauth/lib/auth.py for more detailed usage.
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
fansauth-0.1.2.tar.gz
(8.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fansauth-0.1.2-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file fansauth-0.1.2.tar.gz.
File metadata
- Download URL: fansauth-0.1.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9e80c573f5c0da7c79f430bb023de1617660c27528fc59335bdc85d3b556c5e
|
|
| MD5 |
ad67e3f81386ea1cf2b5c7047ba15903
|
|
| BLAKE2b-256 |
09796819738ef2e86bb4a71b1ca3cdb7b182ae07d98ce407bc77c04bf07bf36e
|
File details
Details for the file fansauth-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fansauth-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
491688e857f81219f5d9b3de15bb29f922330dc8264a430e88c8643375f8663f
|
|
| MD5 |
162145874599b9ca603709944e3408c3
|
|
| BLAKE2b-256 |
b59baee4fe690be309f26b3964761ec26a3b02d407a3619995c9190144ac1596
|