wdonne / traefikoidc

BSD 2-Clause "Simplified" License
2 stars 2 forks source link

RedirectURI does not work for router with PathPrefix #4

Closed KampfCaspar closed 3 months ago

KampfCaspar commented 4 months ago

If I have a router with Host an PathPrefix as rules, the callback URL is created w/o the PathPrefix - therefore the middleware is never reached after authentication...

It is - of course - possible to duplicate the middleware requirement on a second router without the PathPrefix. It would be nice, however, to be able to add the PathPrefix both to the callback URL and the Cookie Path. That would 'fit better' in the router system...

wdonne commented 4 months ago

@KampfCaspar You are right. There should be a configuration field to set the context path and its value should be used for the callback, the cookie and the internal logout path. It will be added.

wdonne commented 3 months ago

Fixed in v1.1.0.