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

Updater Bot
2018-12-17 2b35c926bf402a750ca43a9c5aefa215fd2e9961
src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java
@@ -25,6 +25,7 @@
    public static final String LOGIN_PROTOCOL = "cas";
    public static final String SERVICE_PARAM = "service";
    public static final String TARGET_PARAM = "TARGET";
    public static final String RENEW_PARAM = "renew";
    public static final String GATEWAY_PARAM = "gateway";
    public static final String TICKET_PARAM = "ticket";
@@ -85,7 +86,8 @@
    }
    @Override
    public Response authenticated(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) {
    public Response authenticated(UserSessionModel userSession, ClientSessionContext clientSessionCtx) {
        AuthenticatedClientSessionModel clientSession = clientSessionCtx.getClientSession();
        ClientSessionCode<AuthenticatedClientSessionModel> accessCode = new ClientSessionCode<>(session, realm, clientSession);
        String service = clientSession.getRedirectUri();
@@ -140,13 +142,14 @@
        event.event(EventType.LOGOUT);
        event.user(userSession.getUser()).session(userSession).success();
        LoginFormsProvider infoPage = session.getProvider(LoginFormsProvider.class).setSuccess("Logout successful");
        if (redirectUri != null) {
            infoPage.setAttribute("pageRedirectUri", redirectUri);
            return Response.status(302).location(URI.create(redirectUri)).build();
        } else {
            LoginFormsProvider infoPage = session.getProvider(LoginFormsProvider.class).setSuccess("Logout successful");
            infoPage.setAttribute("skipLink", true);
            return infoPage.createInfoPage();
        }
        return infoPage.createInfoPage();
    }
    @Override