BillN
BillN

Reputation: 61

keycloak in docker, web app not able to connect

I have keycloak running in Docker and have another container running a spring based java app that is attempting to connect to keycloak. The error message I keep getting is: Unable to resolve Configuration with the provided issuer of "http://keycloak:8080/auth/realms/someproject". the realm name does exist in the keycloak DB. I can curl to the above URL from any other container. But the web app keeps giving me that message. Any hints would help. Thanks, Bill

Upvotes: 2

Views: 456

Answers (1)

nguyen chuong
nguyen chuong

Reputation: 1

Try to expose your keycloak container port and set provided issuer like this http://docker-host-ip:exposed-port/auth/realms/someproject

Upvotes: 0

Related Questions