Hello Keycloak Community
I am looking for some assistance on how to pass a Keycloak bearer token in the multi-hop scenario, where the keycloak instance is inside a proxy environment, the next hop is within the proxy, and the original request came from outside of that environment.
Now i need to take that token from the HTTP request, and attach it to a new request from inside the proxy. I do so, redirecting to
http://interior-hostname/API, secured by the same Keycloak. Using "external-hostname" as host once more is not an option, as we are within the proxied environment. However, submitting the hop HTTP request, i am met with the error:
The token is rejected (Since the hostnames are not the exact same), however external-hostname and internal-hostname are the same machine.
Is there a way that Keycloak can identify these hostnames as equivalent to accept the token, or another policy that should be followed in this situation?
Thanks,
Joe