Environment: Keycloak 12.0.4
Application: JavaScript using keycloak.js to confirm authentication and retrieve grants
I have some JavaScript code that is protected by Keycloak using keycloak.js and OpenIDC. This code is embedded in an OpenEdX course page. The OpenEdX UI architecture makes some decisions about how to render content based on the Referer header it receives. Since my code is protected by Keycloak, a redirect to the auth endpoint to confirm authentication occurs followed by a redirect to the original page. This is expected behavior. However, the original Referer header is lost and therefore the page is rendered incorrectly.
Is there any way to cause Keycloak to include the original Referer header when it redirects back to the originating page?
Thanks!