Skip to content

Commit

Permalink
feat: Adds support for Keycloak 26.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilian-krauss committed Jan 27, 2025
1 parent ae5dbe7 commit c877a80
Show file tree
Hide file tree
Showing 7 changed files with 1,953 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Used in docker-compose
# shellcheck disable=SC2034
KEYCLOAK_VERSION=26.0.5
KEYCLOAK_VERSION=26.1.0
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
KEYCLOAK_CLIENT_VERSION: 25.0.1
- KEYCLOAK_VERSION: 26.0.5
KEYCLOAK_CLIENT_VERSION: 26.0.2
- KEYCLOAK_VERSION: 26.1.0
KEYCLOAK_CLIENT_VERSION: 26.0.4
steps:
- uses: actions/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Fix Service Account User always triggers UPDATE USER event [#878](https://github.com/adorsys/keycloak-config-cli/issues/878)
### Added
- Publish charts with github pages [#941](https://github.com/adorsys/keycloak-config-cli/issues/941)
- Support for Keycloak 26.1

### Fixed
- Fix Initial Credentials Causes Update [819](https://github.com/adorsys/keycloak-config-cli/issues/819)
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM ${BUILDER_IMAGE} AS BUILDER

WORKDIR /app/

ARG KEYCLOAK_VERSION=26.0.5
ARG KEYCLOAK_CLIENT_VERSION=26.0.2
ARG KEYCLOAK_VERSION=26.1.0
ARG KEYCLOAK_CLIENT_VERSION=26.0.4
ARG MAVEN_CLI_OPTS="-ntp -B"

COPY .mvn .mvn
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,8 @@ import org.keycloak.representations.userprofile.config.UPConfig;</token>
</property>
</activation>
<properties>
<keycloak.version>26.0.5</keycloak.version>
<keycloak.client.version>26.0.2</keycloak.client.version>
<keycloak.version>26.1.0</keycloak.version>
<keycloak.client.version>26.0.4</keycloak.client.version>
</properties>
</profile>
<!-- Configure the JBoss GA Maven repository -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1992,8 +1992,11 @@ void shouldRemoveAuthzPoliciesForRealmManagement() throws IOException {
assertThat(client.isFullScopeAllowed(), is(false));
assertThat(client.getNodeReRegistrationTimeout(), is(0));
assertThat(client.getDefaultClientScopes(), containsInAnyOrder("web-origins", "profile", "roles", "email"));

Check failure on line 1994 in src/test/java/de/adorsys/keycloak/config/service/ImportClientsIT.java

View workflow job for this annotation

GitHub Actions / build (26.1.0, 26.0.4)

de.adorsys.keycloak.config.service.ImportClientsIT#shouldRemoveAuthzPoliciesForRealmManagement: Expected: iterable with items ["web-origins", "profile", "roles", "email"] in any order but: not matched: "service_account"

Check failure on line 1994 in src/test/java/de/adorsys/keycloak/config/service/ImportClientsIT.java

View workflow job for this annotation

GitHub Actions / build-pom-version (21)

de.adorsys.keycloak.config.service.ImportClientsIT#shouldRemoveAuthzPoliciesForRealmManagement: Expected: iterable with items ["web-origins", "profile", "roles", "email"] in any order but: not matched: "service_account"

Check failure on line 1994 in src/test/java/de/adorsys/keycloak/config/service/ImportClientsIT.java

View workflow job for this annotation

GitHub Actions / build-pom-version (17)

de.adorsys.keycloak.config.service.ImportClientsIT#shouldRemoveAuthzPoliciesForRealmManagement: Expected: iterable with items ["web-origins", "profile", "roles", "email"] in any order but: not matched: "service_account"
assertThat(client.getOptionalClientScopes(), containsInAnyOrder("address", "phone", "offline_access", "microprofile-jwt"));

if (VersionUtil.lt(KEYCLOAK_VERSION, "26.1")) {
assertThat(client.getDefaultClientScopes(), containsInAnyOrder("web-origins", "profile", "roles", "email"));
} else {
assertThat(client.getDefaultClientScopes(), containsInAnyOrder("web-origins", "profile", "roles", "email", "service_account"));
}
if (VersionUtil.lt(KEYCLOAK_VERSION, "26")) {
assertThat(client.getAttributes(), hasKey("client.secret.creation.time"));
} else {
Expand Down
Loading

0 comments on commit c877a80

Please sign in to comment.