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.6.tar.gz
(9.3 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.6-py3-none-any.whl
(11.9 kB
view details)
File details
Details for the file fansauth-0.1.6.tar.gz.
File metadata
- Download URL: fansauth-0.1.6.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acb2d8a4c88b0881a0542a66dbc1416f46f383df8d7cb9a5e5066b4150d16b51
|
|
| MD5 |
909746a758dc2b854af65a093a7de8eb
|
|
| BLAKE2b-256 |
f59d65e339978faec17a4f379d6375e1179c2abc2cb7d9fffd665e473fb89a71
|
File details
Details for the file fansauth-0.1.6-py3-none-any.whl.
File metadata
- Download URL: fansauth-0.1.6-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b763678f62fb4b5c5f2f1a86860f86fe773c8883891789b005dbb2961ce1ab5c
|
|
| MD5 |
db17fe78d7207361e713f7336594e8e3
|
|
| BLAKE2b-256 |
f96a429802c01f1fcd61466f69bc4ba9dfa17a5fdaf7d72b10047519b1ed3bce
|