Skip to content

Commit 5572473

Browse files
committed
keycloak example, fix classpath file reference, due to removal of ARTEMIS_INSTANCE_ETC_URI in ARTEMIS-5364
1 parent 83e8c86 commit 5572473

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/features/standard/security-keycloak/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ under the License.
8181
<ignore>${noServer}</ignore>
8282
<noWeb>false</noWeb>
8383
<!-- enable keycloak for hawtio via system property overrides, note use of "console" realm in login.config -->
84-
<javaOptions>-Dhawtio.keycloakEnabled=true -Dhawtio.keycloakClientConfig=${ARTEMIS_INSTANCE_ETC_URI}keycloak-js-client.json -Dhawtio.authenticationEnabled=true -Dhawtio.realm=console</javaOptions>
84+
<javaOptions>-Dhawtio.keycloakEnabled=true -Dhawtio.keycloakClientConfig=classpath:keycloak-js-client.json -Dhawtio.authenticationEnabled=true -Dhawtio.realm=console</javaOptions>
8585
<libListWithDeps>
8686
<!-- allow keycloak login module classloading from the artemis lib dir-->
8787
<arg>org.keycloak:keycloak-adapter-core:jar:${version.org.keycloak}</arg>

examples/features/standard/security-keycloak/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ This is achieved with system property overrides, passed via the artemis.profile
107107
command to create the broker using the artemis-maven-plugin.
108108

109109
JAVA_ARGS=".. -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal
110-
-Dhawtio.keycloakEnabled=true -Dhawtio.keycloakClientConfig=keycloak-js-client.json
110+
-Dhawtio.keycloakEnabled=true -Dhawtio.keycloakClientConfig=classpath:keycloak-js-client.json
111111
-Dhawtio.authenticationEnabled=true -Dhawtio.realm=console"
112112

113113
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
158158
preferences panel and there is no password stored by default. Configure a password for jdoe in your preferences
159159
and send a message to the Info address.
160160

161-
The client will get this message, print out the user from the message auth header and exit this example.
161+
The client will get this message, print out the user from the message auth header and exit this example.

0 commit comments

Comments
 (0)