Trying to swap auth for zitadel authentication #553
Unanswered
musicformellons
asked this question in
Q&A
Replies: 2 comments
-
I think you have to also include appcontext in the param list (axum tries to figure out the order of params) |
Beta Was this translation helpful? Give feedback.
0 replies
-
And how would i add this part:
As loco seems to already have initiated the router (and uses I also looked into using AppContext for it, but it's fields are also defined within Loco, so how should I extend that? |
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
-
I'm trying to use zitadel oidc authentication. There is Zitadel API and authentication crate for rust with these docs, which has an example with axum.
I have a basic bootstrapped loco saas project and try to use the above example and adapt it for the loco structure but get stuck. E.g. I'm trying this in
src/controller/auth.rs
:Which gives this clippy issues for the 'authed' function:
I tried a bit getting around this without success and hope someone can help me out/ could give some pointers?
Beta Was this translation helpful? Give feedback.
All reactions