Relative Content

Tag Archive for pythonauthentication

Python FastAPI decorator for Auth0

This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 5 mins ago. Is there a way of creating a python decorator that can be applied to a FastAPI route that will ensure the token passed to the route is authorised / authenticated. Something like @app.get(“/private”) @requires_auth([“read:private”]) async def […]