You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using an external provider keycloak and I am trying to authenticate my request to a specific path.
So for example my frontend needs to be secured. Traefik redirects to it under the path /frontend (PathPrefix(/frontend) and I have added the labels for the forward-auth according to the documentation. The redirection to the provider is working fine but then I am getting redirected to that URL_PATH (_oauth?sessionState...,redirectURL=myhost/frontend).
Which basically means my path is getting changed from /frontend to /oauth and I am not sure what to do about it ?
Where does this URL_PATH needs to redirect to ? And how do I handle step 4. Token, user and CSRF cookie is validated (this request in intercepted and is never passed to your application) ?
Also worth mentioning is that I am not using the forward-auth container as entrypoint. Can this be an issue ?
If more information about my setup is required let me know.
I would really appreciate an answer since I am not too deep into that topic.
Thanks :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I am using an external provider keycloak and I am trying to authenticate my request to a specific path.
So for example my frontend needs to be secured. Traefik redirects to it under the path /frontend (PathPrefix(
/frontend
) and I have added the labels for the forward-auth according to the documentation. The redirection to the provider is working fine but then I am getting redirected to that URL_PATH (_oauth?sessionState...,redirectURL=myhost/frontend).Which basically means my path is getting changed from /frontend to /oauth and I am not sure what to do about it ?
Where does this URL_PATH needs to redirect to ? And how do I handle step 4. Token, user and CSRF cookie is validated (this request in intercepted and is never passed to your application) ?
Also worth mentioning is that I am not using the forward-auth container as entrypoint. Can this be an issue ?
If more information about my setup is required let me know.
I would really appreciate an answer since I am not too deep into that topic.
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions