Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests from UI to backend "/applications" endpoint are ignoring session cookies #2045

Closed
dpavanelli opened this issue Jun 8, 2022 · 0 comments · Fixed by #2046
Closed

Comments

@dpavanelli
Copy link

dpavanelli commented Jun 8, 2022

Hi guys, in order to give you more context about this bug, I guess it's necessary to explain a little bit about my infrastructure.

My application (that contains the Springboot Admin project) is running behind a reverse proxy (traefik) under the path /service/admin (properly configured in admin server public-url). Whenever an user access it, the proxy intercepts the requests and look for a session cookie. If the cookie doesn't exists, or is invalid, the proxy redirects the user request to our authentication service (a keycloak server)

After a successful login, a new session cookie is created (and associated with our server domain) and that authenticate service redirects again to our reverse proxy with the original request and a new cookie. The reverse proxy then checks the cookie, and finally allow the access to the original request url.

My problem is that, after loading all static content from Springboot Admin assets, any ajax calls from UI to admin server endpoint (/application) are ignoring the session cookie associated with the public-url , resulting in a 401 (unauthorized) response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant