Skip to main content

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.

Metadata

Release files for fansauth 0.1.9

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

Source distribution (sdist)

Source distribution for fansauth 0.1.9
File Size Uploaded
fansauth-0.1.9.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fansauth 0.1.9
File Interpreter ABI Platform
fansauth-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 21.6 kB

Release files / fansauth-0.1.9.tar.gz

Download URL fansauth-0.1.9.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c7450383b715ab90f3a7b6ddfffa16421ec333ba73de1b238767c657aa81ce61
BLAKE2b-256 checksum
How to use checksums
6754329b36b8df67feed372f054a5ba1414904a38697a44b0652dc92163a1c9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.7

Release files / fansauth-0.1.9-py3-none-any.whl

Download URL fansauth-0.1.9-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa0c885511c1d7e7580d5e85183c9ff0634cd0b42f6db5252224c0daf3ca93b7
BLAKE2b-256 checksum
How to use checksums
9c785e10cf88b583a4bba0ec97fb371f3b8b9782c3e20825f57cb0bdcad019e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.7
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