Repository navigation
Replies: 3 comments 1 reply
|
Hi @sgayda2, Option A: Option B: http:
middlewares:
oidc-auth:
plugin:
traefik-oidc-auth:
CallbackUri: "/baz/oidc/callback"Personally i would suggest using option A. |
|
I believe that neither option will work for me. I know that when i tried option B before, it would do an infinite redirect because it would keep trying to pass the /baz/oidc/callback path to the same rule that needed to be authenticated and that would forward it to my auth provider which was already logged in and it would forward me back to the same callback url and the cycle would repeat. I do not believe that option A would work for me because i do intend to add more than one path rule for example i have bar.example.com/baz but i would also like to do bar.example.com/tar that redirects to something else. If i make my rule always go to the the baz service when /oidc/callback is called, then it would never forward to the second service when it goes to the callback. Maybe I need to do some kind of combo, i will try again tonight and see what i can come up with. |
|
I stand corrected, i tried option A and it worked for both paths, but I am unclear how the logic works, as I am not sure why it would select one or the other rule since they would both apply |
Uh oh!
There was an error while loading. Please reload this page.
I am having some issues setting up authentik OIDC + traefik where I use a path prefix. It seems that when the callback url is called it fails with a 404 because the callback url does not have the prefix. I am certain that I am missing a simple configuration change but I need assistance.
I have something like this in my file provider:
When I navigate to
foo.example.comit correctly redirects me toauth.example.comI login and it correctly brings me back to what I would expect to see fromhttp://server.local:1234. However when I navigate tobar.example.com/bazit will correctly redirect me toauth.example.comI will login and then it will redirect me tobar.example.com/oidc/callback?.....which will produce a 404.I am sure that this is a simple config change, but I am unable to figure it out, its also unclear if this is a traefik, middleware, or authentik issue. I hope you can help me.
All reactions