Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python FastAPI #5

Closed
mschwager opened this issue Apr 5, 2023 · 2 comments
Closed

Add support for Python FastAPI #5

mschwager opened this issue Apr 5, 2023 · 2 comments

Comments

@mschwager
Copy link
Owner

https://fastapi.tiangolo.com/

@ocervell
Copy link
Contributor

+1 please ;)

@mschwager
Copy link
Owner Author

Hey @ocervell, I opened a PR with basic FastAPI support: #17. Would you mind taking a look?

FastAPI takes a different approach to authentication compared to some other Python frameworks like Flask. Flask apps typically use Python decorators to specify authn/authz information. FastAPI uses function arguments as a kind of dependency injection for authn. As a first pass, I considered authn arguments shown in these examples:

Let me know if this works for you, if there are different authn arguments you think should be specified, or if you think there's a better approach altogether.

mschwager added a commit that referenced this issue Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants