Router::route_layer: Custom Basic authorization example #1742
-
Feature RequestHi, I'm wondering if a Apologies if requests for documentation enhancement aren't considered features, and thanks for your time. MotivationI've been trying to implement a custom The use case I have that doesn't let me use the existing I am coming from ProposalAn example of using the Alternatives
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't think I recommend you handle it yourself with Also note that |
Beta Was this translation helpful? Give feedback.
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.