You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you please advice how to over come this hurdle
I have my local docker network setup, using Signed JWT as authentication type. Also I have in Use JWKS URL. This is were if fails when running on local machine docker network, I get this error
{
"message": "failed to get from node cache: response indicates failure, status=400, body={"error":"invalid_client","error_description":"Client authentication with signed JWT failed: Token audience doesn't match domain. Expected audiences are any of [http: //localhost:8088/auth/realms/demo_tenant, http://localhost:8088/auth/realms/demo_tenant/protocol/openid-connect/token, http://localhost:8088/auth/realms/demo_tenant/protocol/openid-connect/ext/par/request, http://localhost:8088/auth/realms/demo_tenant/protocol/openid-connect/ext/ciba/auth] but audience from token is '[http://host.docker.internal:8088/auth/realms/demo_tenant/protocol/openid-connect/token]'"}"
}
I cannot use localhost, as container communication is not possible. But when using host.docker.internal, it fails here
if (!token.hasAnyAudience(expectedAudiences)) {
throw new RuntimeException("Token audience doesn't match domain. Expected audiences are any of " + expectedAudiences
+ " but audience from token is '" + Arrays.asList(token.getAudience()) + "'");
}
keycloak apllication in docker see itself as local
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Can you please advice how to over come this hurdle
I have my local docker network setup, using Signed JWT as authentication type. Also I have in Use JWKS URL. This is were if fails when running on local machine docker network, I get this error
I cannot use localhost, as container communication is not possible. But when using host.docker.internal, it fails here
keycloak apllication in docker see itself as local
but token received from kong is using docker.network
so it will never match...
I have tried combinations like
no use... leaving just
ENV KC_HOSTNAME_STRICT_BACKCHANNEL=truealignes server uri ti localhost, hence in docker environment it will fail to connect ...
Any suggestions please?
All reactions