Repository navigation
Replies: 1 comment
|
you got any solution for this? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have this setup with Keycloak, Spring Boot and NGINX:
NGINX has two config files. One api.domain.com which points to Spring as a reverse proxy, everything works fine with using the API with Keycloak by using for example Postman/cURL.
I have another one domain.com that has a reverse proxy to Keycloak. It works fine going to URL
https://domain.com/authand log in etc. But when trying to access content on my Swagger athttps://api.domain.com/v1/docs/index.htmlit tries to redirect me tohttp://api.domain.com/sso/loginwhich is two things that are not correct. Firstly the protocol and secondly using the subdomain where Keycloak is not on.I have set under Valid Redirect URIs
https://domain.com/*. So when a user tried to access that content on my Swagger, should they not be able to redirect to the Keycloak athttps://domain.com/authand then redirect back when authenticated?This is my NGINX config for the api.domain.com:
This is my NGINX config for domain.com:
I don't seem to understand or find information why this is happening. Do anyone have idea how to fix this?
All reactions