Selectively load logged-in user on requests that require it #28
Labels
No labels
operations
simulator api
tests
web app
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
DevOpps/minitwit#28
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
load_current_usermiddleware runs on every request because of 1:1 migration from the original Python version.We could have used custom extractors instead of middleware, which would enable us to only attempt to retrieve the currently logged in user on endpoints that require it.
The axum_login crate could potentially provide more comprehensive auth utilities.
See docs/MIGRATING.md
Logged-in user is loaded on every requestto Selectively load logged-in user on requests that require it