Open fczuardi opened 3 years ago
Hello,
I also have the same issue, but I'm using only one instance of Keycloak. I first thought it was an issue with my reverse proxy (Traefik 2.5) but I still get a connection refused after disabling it. Since the call is probably made from the server Keycloak, it can't reach itself on 127.0.0.1 within the docker network. And if I change the domain for a docker network alias, then I get a "wrong redirect uri error". I'll let you know if I find a workaround
Hello, I'm facing a similar issue. I have installed two Keycloak instances using a docker-compose file: one as an Identity Provider (IdP) on port 9090, and the second as a broker on port 8085. However, I'm unable to log in a user created on the Identity Provider to the broker.
Additionally, I have noticed the same errors in the logs:
ERROR [org.keycloak.broker.oidc.AbstractOAuth2IdentityProvider] (default task-57) Failed to make identity provider oauth callback: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:9090 [/127.0.0.1] failed: Connection refused (Connection refused)
Did you manage to solve the problem since then?
I am trying to test a scenario of 2 keycloaks where one is identity provider for the other, but I keep getting a 502 error with both them on localhost... is it possible?
Here is my simple testcase:
docker-compose.yml
Keycloak 1 (http://localhost:1234 ) new realm:
user registration enabled, SSL disabled: new client: access type: confidential wildcards on Valid Redirect URIs and Web Origins: client secret copied
finishing with admin1 Sign Out
Keycloak 2 (http://localhost:4321 )
new realm: user registration On, SSL Off: new identity provider Keycloak OpenID Connect, auth and token endpoints Client Authentication, Client ID, Client Secret
Save and SignOut admin2
Keycloak 1 from user perspective Open http://localhost:1234/auth/realms/realm_a/account and SignIn to register a new user After success login, signout
Keycloak 2 from user perspective Open http://localhost:4321/auth/realms/realm_b/account and attempt to Sign In using the Identity Provider After click on "keycloak1" button After sign in
Logs
Browser Network Tab
What am I missing? Is it possible to have the identity provider and the broker on the same machine?
Thanks!