Skip to content
Discussion options

You must be logged in to vote

I don't think RequireAuthorizationLayer::custom offers much when you're using axum. They're overdue for a rework I'd say.

I recommend you handle it yourself with axum::middleware::from_fn.

Also note that axum-auth is an external library and not maintained by the axum team.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@phyber
Comment options

Answer selected by phyber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1741 on February 10, 2023 21:46.