I’m encountering difficulties while integrating Keycloak authentication into my Angular application using server configuration by creating respective realms and clients.
Issue I’m facing:
Upon launching the Angular application, it redirects to the keycloak authentication page. After signing in and navigating to the application page, the problem arises when I refresh the page or manually change the application URL. This leads to a keycloak 502 bad gateway issue. However, if I perform a hard refresh on the keycloak authentication page before signing in, everything works fine (both refreshing the page and manually changing the URL).
Please share any insights you may have on this issue or suggestions on how to overcome it.