mirror of https://github.com/jacekkow/keycloak-protocol-cas

github-actions
2021-08-07 9ccb28119b2cd309234e04c2c6aa97fca57461f2
src/main/java/org/keycloak/protocol/cas/endpoints/LogoutEndpoint.java
@@ -58,7 +58,7 @@
            if (redirectUri != null) userSession.setNote(CASLoginProtocol.LOGOUT_REDIRECT_URI, redirectUri);
            logger.debug("Initiating CAS browser logout");
            Response response =  AuthenticationManager.browserLogout(session, realm, authResult.getSession(), session.getContext().getUri(), clientConnection, headers);
            Response response =  AuthenticationManager.browserLogout(session, realm, authResult.getSession(), session.getContext().getUri(), clientConnection, headers, null);
            logger.debug("finishing CAS browser logout");
            return response;
        }
@@ -72,10 +72,10 @@
        client = realm.getClients().stream()
                .filter(c -> CASLoginProtocol.LOGIN_PROTOCOL.equals(c.getProtocol()))
                .filter(c -> RedirectUtils.verifyRedirectUri(session.getContext().getUri(), service, realm, c) != null)
                .filter(c -> RedirectUtils.verifyRedirectUri(session, service, c) != null)
                .findFirst().orElse(null);
        if (client != null) {
            redirectUri = RedirectUtils.verifyRedirectUri(session.getContext().getUri(), service, realm, client);
            redirectUri = RedirectUtils.verifyRedirectUri(session, service, client);
            session.getContext().setClient(client);
        }