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

Consider implementation of user authentication with authentication middleware #238

Open
vadim-zabolotniy opened this issue Jan 3, 2023 · 0 comments
Assignees

Comments

@vadim-zabolotniy
Copy link
Collaborator

Current implementation of user authentication and authorization is not "elegant". We making user authorization in FastAPI dependency then authentication. Because of that we have duplicating JWT processing code base. Also, in case with access token, it leads to double DB queries to fetch same user.

@vadim-zabolotniy vadim-zabolotniy self-assigned this Jan 3, 2023
@vadim-zabolotniy vadim-zabolotniy changed the title Consider variant of user authentication with authentication middleware Consider implementation of user authentication with authentication middleware Jan 3, 2023
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

1 participant