This is an automated email from the ASF dual-hosted git repository. robbie pushed a commit to branch development in repository https://gitbox.apache.org/repos/asf/activemq-artemis-examples.git
commit 74d47a52beb2eef87be519c038d31c084bd48483 Author: Gary Tully <[email protected]> AuthorDate: Thu Jul 24 12:15:43 2025 +0100 keycloak example, fix classpath file reference, due to removal of ARTEMIS_INSTANCE_ETC_URI in ARTEMIS-5364 --- examples/features/standard/security-keycloak/pom.xml | 2 +- examples/features/standard/security-keycloak/readme.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/features/standard/security-keycloak/pom.xml b/examples/features/standard/security-keycloak/pom.xml index 297d145c..842b27f7 100644 --- a/examples/features/standard/security-keycloak/pom.xml +++ b/examples/features/standard/security-keycloak/pom.xml @@ -81,7 +81,7 @@ under the License. <ignore>${noServer}</ignore> <noWeb>false</noWeb> <!-- enable keycloak for hawtio via system property overrides, note use of "console" realm in login.config --> - <javaOptions>-Dhawtio.keycloakEnabled=true -Dhawtio.keycloakClientConfig=${ARTEMIS_INSTANCE_ETC_URI}keycloak-js-client.json -Dhawtio.authenticationEnabled=true -Dhawtio.realm=console</javaOptions> + <javaOptions>-Dhawtio.keycloakEnabled=true -Dhawtio.keycloakClientConfig=classpath:keycloak-js-client.json -Dhawtio.authenticationEnabled=true -Dhawtio.realm=console</javaOptions> <libListWithDeps> <!-- allow keycloak login module classloading from the artemis lib dir--> <arg>org.keycloak:keycloak-adapter-core:jar:${version.org.keycloak}</arg> diff --git a/examples/features/standard/security-keycloak/readme.md b/examples/features/standard/security-keycloak/readme.md index ee162034..f38e81dc 100644 --- a/examples/features/standard/security-keycloak/readme.md +++ b/examples/features/standard/security-keycloak/readme.md @@ -107,7 +107,7 @@ This is achieved with system property overrides, passed via the artemis.profile command to create the broker using the artemis-maven-plugin. JAVA_ARGS=".. -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal - -Dhawtio.keycloakEnabled=true -Dhawtio.keycloakClientConfig=keycloak-js-client.json + -Dhawtio.keycloakEnabled=true -Dhawtio.keycloakClientConfig=classpath:keycloak-js-client.json -Dhawtio.authenticationEnabled=true -Dhawtio.realm=console" Note the 'hawtio.realm=console' and the 'hawtio.keycloakClientConfig' in 'keycloak-js-client.json' which provides the keycloak @@ -158,4 +158,4 @@ Navigate to the Info address and send a message. The first sent may fail, the us preferences panel and there is no password stored by default. Configure a password for jdoe in your preferences and send a message to the Info address. -The client will get this message, print out the user from the message auth header and exit this example. \ No newline at end of file +The client will get this message, print out the user from the message auth header and exit this example. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information, visit: https://activemq.apache.org/contact
