serverUrl and issuer does not match?

221 views
Skip to first unread message

Stefan Beller

unread,
Feb 25, 2022, 8:54:16 AM2/25/22
to Keycloak User
Hello,

I have an instance of keycloak running under http://domain1:8080 and http://domain2:8080 (e.g. over docker network)

My vue based client on http://domain1:8081 accesses keycloak as a public client and receives an access token. Then the client wants to access the Server with the access token. 

The server is connected with keycloak as a confidential client. When I configure serverUrl as http://domain1:8080/auth it works.

When I configure serverUrl as http://domain2:8080/auth it does not work. 

Maybe it is because the serverUrl and the issuer are not matching?

To clearify the Situation i have drawn a Image:

keycloak_issuer.png


How can I solve this issue?

In the end, i want to run my client application on a public domain and access keycloak on the serverside through an internal docker hostname.

For the client I am using the keycloak-js for Javascript
For the Server I am using keycloak-connect for node

If I have missed some details please ask :)

Thank you for your support!

Lukas Gisi

unread,
Feb 25, 2022, 5:03:43 PM2/25/22
to Keycloak User
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages