Keys your customers create themselves
Developers sign up on your branded portal and hold a working key in under a minute. The SDK checks keys against a local snapshot, so MicroAuth never sees your traffic.
API keys, rate limits and metered billing, enforced by a small SDK inside your own service. No gateway in front of your traffic and no config files to babysit.
from fastapi import FastAPI, Security
from microauth_fastapi import MicroAuth, Customer
app = FastAPI()
auth = MicroAuth(app) # keys, rate limits and billing
@app.get("/forecast")
async def forecast(customer: Customer = Security(auth)):
return {"hello": customer.id}pip install microauth-fastapi