Hello,

Quick update: I found in the example that in the pom.xml (and mentioned in the 
README), that some file are copied in the lib folder: 
https://github.com/apache/activemq-artemis/blob/b0f131f080d1e5f921626b32bed6f0c5e37e67ff/examples/features/standard/security-keycloak/pom.xml#L85

Once those jar (and dependencies) identified and added in lib folder, I finally 
managed to connect Artemis v2.20.0 with the remote Keycloak v16.1.1 :)

Please do not hesitate to let me know if this approach seems incomplete or 
wrong! :)

Nicolas



C2 - Usage restreint
De : CASAUX Nicolas
Envoyé : jeudi 24 février 2022 18:03
À : users@activemq.apache.org
Objet : Artemis with remote keycloak

Hello !

I'm trying to use latest version of Artemis 2.20.0 to connect to a remote 
keycloak, but so far I did not succeed. It seems that my keycloak is never 
requested by Artemis.

I looked at the example provided here 
https://github.com/apache/activemq-artemis/tree/main/examples/features/standard/security-keycloak
 and managed to make it work successfully.

So I started to look after differences between the provided example and my 
configuration. I noticed this log entry when running the provided example:
[org.keycloak.adapters.KeycloakDeployment] Loaded URLs from 
http://localhost:8080/auth/realms/artemis-keycloak-demo/.well-known/openid-configuration

This log entry never appears when I start Artemis with my own configuration.

  *   Is there some configuration I am missing ? A jar to add maybe?
  *   Is it a correct solution to use a remote Keycloak instead of a embedded 
one ?

Thanks in advance for your help!

Nicolas



C2 - Usage restreint

Reply via email to