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

Jacek Kowalski
2023-11-24 7a34c2a448ef18f0bc04977db3e9065bfdd2a07d
LogoutEndpoint: move client field to local var in checkClient()
1 files modified
3 ■■■■ changed files
src/main/java/org/keycloak/protocol/cas/endpoints/LogoutEndpoint.java 3 ●●●● patch | view | raw | blame | history
src/main/java/org/keycloak/protocol/cas/endpoints/LogoutEndpoint.java
@@ -23,7 +23,6 @@
    private KeycloakSession session;
    private RealmModel realm;
    private ClientModel client;
    private String redirectUri;
    public LogoutEndpoint(KeycloakSession session, RealmModel realm) {
@@ -64,7 +63,7 @@
            return;
        }
        client = realm.getClientsStream()
        ClientModel client = realm.getClientsStream()
                .filter(c -> CASLoginProtocol.LOGIN_PROTOCOL.equals(c.getProtocol()))
                .filter(c -> RedirectUtils.verifyRedirectUri(session, service, c) != null)
                .findFirst().orElse(null);