Skip to content

Commit

Permalink
Merge pull request #44449 from jedla97/bump-keycloak-26.0.5
Browse files Browse the repository at this point in the history
Bump Keycloak version to 26.0.7
  • Loading branch information
sberyozkin authored Dec 24, 2024
2 parents 4f943d5 + 19f2bc2 commit 1f1643a
Show file tree
Hide file tree
Showing 19 changed files with 69 additions and 71 deletions.
2 changes: 1 addition & 1 deletion build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<junit4.version>4.13.2</junit4.version>

<!-- The image to use for tests that run Keycloak -->
<keycloak.server.version>25.0.6</keycloak.server.version>
<keycloak.server.version>26.0.7</keycloak.server.version>
<keycloak.wildfly.version>19.0.3</keycloak.wildfly.version>
<keycloak.docker.image>quay.io/keycloak/keycloak:${keycloak.server.version}</keycloak.docker.image>
<keycloak.docker.legacy.image>quay.io/keycloak/keycloak:${keycloak.wildfly.version}-legacy</keycloak.docker.legacy.image>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ docker run --name keycloak \
start --hostname-strict=false --https-key-store-file=/etc/keycloak-keystore.jks <2>
----

<1> For `keycloak.version`, ensure the version is `25.0.6` or later.
<1> For `keycloak.version`, ensure the version is `26.0.7` or later.
<2> For Keycloak keystore, use the `keycloak-keystore.jks` file located at https://github.com/quarkusio/quarkus-quickstarts/blob/main/security-keycloak-authorization-quickstart/config/keycloak-keystore.jks[quarkus-quickstarts/security-keycloak-authorization-quickstart/config].


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ For more information, see the <<bearer-token-tutorial-keycloak-dev-mode>> sectio
docker run --name keycloak -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -p 8180:8080 quay.io/keycloak/keycloak:{keycloak.version} start-dev
----
====
* Where the `keycloak.version` is set to version `25.0.6` or later.
* Where the `keycloak.version` is set to version `26.0.7` or later.
. You can access your Keycloak server at http://localhost:8180[localhost:8180].
. To access the Keycloak Administration console, log in as the `admin` user by using the following login credentials:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ To start a Keycloak server, use Docker and run the following command:
docker run --name keycloak -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -p 8180:8080 quay.io/keycloak/keycloak:{keycloak.version} start-dev
----

where `keycloak.version` is set to `25.0.6` or later.
where `keycloak.version` is set to `26.0.7` or later.

You can access your Keycloak Server at http://localhost:8180[localhost:8180].

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/security-openid-connect-client.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ To start a Keycloak Server, you can use Docker and just run the following comman
docker run --name keycloak -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -p 8180:8080 quay.io/keycloak/keycloak:{keycloak.version} start-dev
----

Set `{keycloak.version}` to `25.0.6` or later.
Set `{keycloak.version}` to `26.0.7` or later.

You can access your Keycloak Server at http://localhost:8180[localhost:8180].

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ For more information, see xref:security-oidc-bearer-token-authentication.adoc#be
[[keycloak-initialization]]
=== Keycloak initialization

The `quay.io/keycloak/keycloak:25.0.6` image which contains a Keycloak distribution powered by Quarkus is used to start a container by default.
The `quay.io/keycloak/keycloak:26.0.7` image which contains a Keycloak distribution powered by Quarkus is used to start a container by default.
`quarkus.keycloak.devservices.image-name` can be used to change the Keycloak image name.
For example, set it to `quay.io/keycloak/keycloak:19.0.3-legacy` to use a Keycloak distribution powered by WildFly.
Be aware that a Quarkus-based Keycloak distribution is only available starting from Keycloak `20.0.0`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ To start a Keycloak server, you can use Docker and run the following command:
docker run --name keycloak -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin -p 8180:8080 quay.io/keycloak/keycloak:{keycloak.version} start-dev
----

where `keycloak.version` is set to `25.0.6` or higher.
where `keycloak.version` is set to `26.0.7` or higher.

Access your Keycloak server at http://localhost:8180[localhost:8180].

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public interface KeycloakDevServicesConfig {
* ends with `-legacy`.
* Override with `quarkus.keycloak.devservices.keycloak-x-image`.
*/
@WithDefault("quay.io/keycloak/keycloak:25.0.6")
@WithDefault("quay.io/keycloak/keycloak:26.0.7")
String imageName();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void testCodeFlow() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

textPage = loginForm.getInputByName("login").click();
textPage = loginForm.getButtonByName("login").click();

assertEquals("alice", textPage.getContent());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void testCodeFlowOnTableNotCreatedByExtension() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

page = loginForm.getInputByName("login").click();
page = loginForm.getButtonByName("login").click();
assertEquals(200, page.getWebResponse().getStatusCode());

WebResponse webResponse = webClient.loadWebResponse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void testCodeFlow() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

textPage = loginForm.getInputByName("login").click();
textPage = loginForm.getButtonByName("login").click();

assertEquals("alice", textPage.getContent());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void testWebAppTenantAllowed(String user) throws Exception {

loginForm.getInputByName("username").setValueAttribute(user);
loginForm.getInputByName("password").setValueAttribute(user);
WebResponse response = loginForm.getInputByName("login").click().getWebResponse();
WebResponse response = loginForm.getButtonByName("login").click().getWebResponse();
assertEquals(200, response.getStatusCode());
assertTrue(response.getContentAsString().contains("Permission Resource WebApp"));

Expand All @@ -102,7 +102,7 @@ private void testWebAppTenantForbidden(String user) throws Exception {
loginForm.getInputByName("username").setValueAttribute(user);
loginForm.getInputByName("password").setValueAttribute(user);
try {
loginForm.getInputByName("login").click();
loginForm.getButtonByName("login").click();
fail("403 status error is expected");
} catch (FailingHttpStatusCodeException ex) {
assertEquals(403, ex.getStatusCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void testDefaultRegisteredClientOnStartup() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

TextPage textPage = loginForm.getInputByName("login").click();
TextPage textPage = loginForm.getButtonByName("login").click();

assertEquals("registered-client:Default Client Updated:alice", textPage.getContent());
}
Expand All @@ -59,7 +59,7 @@ public void testTenantRegisteredClientOnStartup() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

TextPage textPage = loginForm.getInputByName("login").click();
TextPage textPage = loginForm.getButtonByName("login").click();

assertEquals("registered-client-tenant:Tenant Client:alice", textPage.getContent());
}
Expand All @@ -77,7 +77,7 @@ public void testRegisteredClientDynamically() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

TextPage textPage = loginForm.getInputByName("login").click();
TextPage textPage = loginForm.getButtonByName("login").click();

assertEquals("registered-client-dynamically:Dynamic Client:alice", textPage.getContent());
}
Expand All @@ -95,7 +95,7 @@ public void testRegisteredClientDynamicTenant() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

TextPage textPage = loginForm.getInputByName("login").click();
TextPage textPage = loginForm.getButtonByName("login").click();

assertEquals("registered-client-dynamic-tenant:Dynamic Tenant Client:alice", textPage.getContent());
}
Expand All @@ -113,7 +113,7 @@ public void testRegisteredClientMulti1() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

TextPage textPage = loginForm.getInputByName("login").click();
TextPage textPage = loginForm.getButtonByName("login").click();

assertEquals("registered-client-multi1:Multi1 Client:alice", textPage.getContent());
}
Expand All @@ -131,7 +131,7 @@ public void testRegisteredClientMulti2() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

TextPage textPage = loginForm.getInputByName("login").click();
TextPage textPage = loginForm.getButtonByName("login").click();

assertEquals("registered-client-multi2:Multi2 Client:alice", textPage.getContent());
}
Expand All @@ -149,7 +149,7 @@ public void testRegisteredClientJwtBearerTokenFromFile() throws IOException {
loginForm.getInputByName("username").setValueAttribute("alice");
loginForm.getInputByName("password").setValueAttribute("alice");

TextPage textPage = loginForm.getInputByName("login").click();
TextPage textPage = loginForm.getButtonByName("login").click();

assertEquals("registered-client-jwt-bearer-token-file:signed-jwt-test:alice", textPage.getContent());
}
Expand Down
Loading

0 comments on commit 1f1643a

Please sign in to comment.