Original Referer header is lost during OIDC redirect

86 views
Skip to first unread message

Brian Levine

unread,
Nov 16, 2022, 3:14:34 PM11/16/22
to Keycloak User
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!
Reply all
Reply to author
Forward
0 new messages