Skip to content

Commit

Permalink
chore!(deps): Update Keycloak dependencies to 26.1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Sven-Torben Janus <sven-torben@sven-torben.de>
  • Loading branch information
sventorben committed Jan 15, 2025
1 parent 10f52a0 commit e42f4ee
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ body:
label: Version
description: |
examples:
- **Keycloak**: 26.0.7
- **Keycloak**: 26.1.0
- **This extension**: 26.0.0
value: |
- Keycloak:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
keycloak_version: [ 26.0.0, 26.0.1, 26.0.2, 26.0.4, 26.0.5, 26.0.6, 26.0.7, latest ]
keycloak_version: [ 26.1.0, latest ]
experimental: [false]
include:
- keycloak_version: nightly
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
keycloak_version: [ 21.0.2, 21.1.2, 22.0.5, 23.0.7, 24.0.5, 25.0.6, 26.0.0, 26.0.1, 26.0.2, 26.0.4, 26.0.5, 26.0.6, 26.0.7, latest, nightly ]
keycloak_version: [ 21.0.2, 21.1.2, 22.0.5, 23.0.7, 24.0.5, 25.0.6, 26.0.8, 26.1.0, latest, nightly ]
extension_version: [ 21.3.0, 22.0.0, 22.1.0, 23.0.0, 24.0.0, 24.1.0, 25.0.1, 26.0.1 ]
name: KC ${{ matrix.keycloak_version }}, Extension ${{ matrix.extension_version }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This is a simple Keycloak authenticator to redirect users to their home identity provider during login.

![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/sventorben/keycloak-home-idp-discovery?sort=semver)
![Keycloak Dependency Version](https://img.shields.io/badge/Keycloak-26.0.7-blue)
![Keycloak Dependency Version](https://img.shields.io/badge/Keycloak-26.1.0-blue)
![GitHub Release Date](https://img.shields.io/github/release-date-pre/sventorben/keycloak-home-idp-discovery)
![Github Last Commit](https://img.shields.io/github/last-commit/sventorben/keycloak-home-idp-discovery)

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
keycloak:
container_name: keycloak
hostname: keycloak
image: quay.io/keycloak/keycloak:26.0.7
image: quay.io/keycloak/keycloak:26.1.0

environment:
KC_BOOTSTRAP_ADMIN_USERNAME: admin
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<maven.compiler.release>17</maven.compiler.release>

<!-- For compilation -->
<version.keycloak>26.0.7</version.keycloak>
<version.keycloak>26.1.0</version.keycloak>

<!-- For compatibility tests -->
<keycloak.version>${version.keycloak}</keycloak.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.keycloak.authentication.AuthenticationProcessor;
import org.keycloak.broker.provider.AuthenticationRequest;
import org.keycloak.broker.provider.IdentityProvider;
import org.keycloak.broker.provider.IdentityProviderFactory;
import org.keycloak.broker.provider.util.IdentityBrokerState;
import org.keycloak.models.IdentityProviderModel;
import org.keycloak.models.KeycloakSession;
Expand All @@ -16,7 +15,7 @@
import org.keycloak.services.managers.ClientSessionCode;
import org.keycloak.sessions.AuthenticationSessionModel;

import static org.keycloak.services.resources.IdentityBrokerService.getIdentityProviderFactory;
import static org.keycloak.services.resources.IdentityBrokerService.getIdentityProvider;

final class Redirector {

Expand Down Expand Up @@ -45,8 +44,7 @@ void redirectTo(IdentityProviderModel idp) {
return;
}
new HomeIdpAuthenticationFlowContext(context).loginHint().copyTo(clientSessionCode);
IdentityProviderFactory<?> providerFactory = getIdentityProviderFactory(keycloakSession, idp);
IdentityProvider<?> identityProvider = providerFactory.create(keycloakSession, idp);
IdentityProvider<?> identityProvider = getIdentityProvider(keycloakSession, idp.getAlias());

Response response = identityProvider.performLogin(createAuthenticationRequest(providerAlias, identityProvider, clientSessionCode));
context.forceChallenge(response);
Expand Down

0 comments on commit e42f4ee

Please sign in to comment.