Skip to content

Commit

Permalink
ARTEMIS-4179 Upgrade keycloak version to 21.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brusdev authored and gtully committed Feb 23, 2023
1 parent a7973c1 commit aa8102d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 23 deletions.
22 changes: 4 additions & 18 deletions examples/features/standard/security-keycloak/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ under the License.

<properties>
<activemq.basedir>${project.basedir}/../../../..</activemq.basedir>
<version.org.keycloak>19.0.2</version.org.keycloak>
<version.org.keycloak>21.0.0</version.org.keycloak>
<version.jboss.logging>3.5.0.Final</version.jboss.logging>
</properties>

Expand All @@ -59,7 +59,7 @@ under the License.
<goal>wget</goal>
</goals>
<configuration>
<url>https://github.com/keycloak/keycloak/releases/download/${version.org.keycloak}/keycloak-legacy-${version.org.keycloak}.tar.gz</url>
<url>https://github.com/keycloak/keycloak/releases/download/${version.org.keycloak}/keycloak-${version.org.keycloak}.tar.gz</url>
<unpack>true</unpack>
<overwrite>false</overwrite>
<skip>${noServer}</skip>
Expand Down Expand Up @@ -168,29 +168,15 @@ under the License.
<configuration>
<skip>${noServer}</skip>
<async>true</async>
<executable>./target/keycloak-${version.org.keycloak}/bin/standalone.sh</executable>
<executable>./target/keycloak-${version.org.keycloak}/bin/kc.sh</executable>
<arguments>
<argument>start-dev</argument>
<argument>-Dkeycloak.migration.action=import</argument>
<argument>-Dkeycloak.migration.provider=singleFile</argument>
<argument>-Dkeycloak.migration.file=./src/main/resources/artemis-keycloak-demo-realm.json</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>stop-keycloak</id>
<phase>verify</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>${noServer}</skip>
<executable>./target/keycloak-${version.org.keycloak}/bin/jboss-cli.sh</executable>
<arguments>
<argument>--connect</argument>
<argument>command=:shutdown</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion examples/features/standard/security-keycloak/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In this example, broker authentication is delegated to keycloak. A keycloak serv
a demo realm called "artemis-keycloak-demo".

_NOTE_: The keycloak admin user is admin:admin
The keycloak admin console is at: http://localhost:8080/auth/admin/master/console/#/realms/artemis-keycloak-demo
The keycloak admin console is at: http://localhost:8080/admin/master/console/#/realms/artemis-keycloak-demo

Artemis uses JAAS for authentication and authorization, when authentication is delegated to keycloak, JAAS needs a
way to query keycloak and resolve tokens or authenticate directly.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"realm": "artemis-keycloak-demo",
"resource": "artemis-console",
"auth-server-url": "http://localhost:8080/auth",
"auth-server-url": "http://localhost:8080",
"principal-attribute": "preferred_username",
"use-resource-role-mappings": true,
"ssl-required": "external",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"realm": "artemis-keycloak-demo",
"resource": "artemis-broker",
"auth-server-url": "http://localhost:8080/auth",
"auth-server-url": "http://localhost:8080",
"use-resource-role-mappings": true,
"principal-attribute": "preferred_username",
"ssl-required": "external",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"realm" : "artemis-keycloak-demo",
"clientId" : "artemis-console",
"url" : "http://localhost:8080/auth"
}
"url" : "http://localhost:8080"
}

0 comments on commit aa8102d

Please sign in to comment.