Middleware to redirect to login route then back to the original route? #2758
Unanswered
nbigaouette
asked this question in
Q&A
Replies: 1 comment
-
You can return a 3xx status code from your middleware without running the handlers themselves and you can craft the location so that you encode all the data needed into the URL. This won't work for bodies though as those might be just too large. A lot of this might depend on your concrete use-case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Is it possible to have:
What I'm trying to do is verify that every requests contains a valid cookie and create it if absent. I want to uniquely identify clients: I said "login" above but there is no auth, it's just a unique id that the server sets for each clients.
Thanks!
axum version
0.7.5
Beta Was this translation helpful? Give feedback.
All reactions