Skip to content

Commit 99d8c45

Browse files
authored
fix: tiny string equals issue (#488)
1 parent e6f561d commit 99d8c45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/keycloak/extensions-26/services/src/main/java/com/github/bcgov/keycloak/authenticators/CookieStopAuthenticator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void authenticate(AuthenticationFlowContext context) {
8686
if (idp != null
8787
&& idp.isEnabled()
8888
&& (clientScopes.containsKey(authIdp) || clientScopes.containsKey(authIdp + "-saml"))
89-
&& authIdp != existingSessionIdp) {
89+
&& !authIdp.equalsIgnoreCase(existingSessionIdp)) {
9090

9191
userSessionProvider.removeUserSession(context.getRealm(), authResult.getSession());
9292
context.attempted();

0 commit comments

Comments
 (0)