ARTEMIS-4179 Upgrade keycloak version to 21.0.0

This commit is contained in:
Domenico Francesco Bruscino 2023-02-23 13:07:55 +01:00 committed by Gary Tully
parent a7973c1dc3
commit aa8102d50f
5 changed files with 9 additions and 23 deletions

View File

@ -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>
@ -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>
@ -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>

View File

@ -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.

View File

@ -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",

View File

@ -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",

View File

@ -1,5 +1,5 @@
{
"realm" : "artemis-keycloak-demo",
"clientId" : "artemis-console",
"url" : "http://localhost:8080/auth"
}
"url" : "http://localhost:8080"
}