I use the keycloak docker image to secure a node.js app. When I am running my node.js app on my local machine everything works as expected. But when I run my app in a docker container I get always Access denied. I can step into the conatiner and reach the keycloak from there (by using the IP of the localhost, I forwarded the ports of keycloak to the host or by calling it by the container name, I added the node.js app to the keycloak network).
This is how my keycloak.json looks
{
"realm": "spectraSelect",
"bearer-only": true,
"auth-server-url": "http://10.49.30.78:8080/auth",
"ssl-required": "none",
"resource": "node-server",
"confidential-port": 0
}
Is there any way to debug the keycloak-connect. I tried already everything, I running out of ideas :(.
Love and Peace, Philipp