Hi,
Env: 
CAS Server:5.1.3
CAS Client 3.4.1

I have three services running inside same tomcat server.
I have another server running cas.
i have put below inside my cas.properties:

cas.serviceRegistry.initFromJson=true
cas.serviceRegistry.config.location=file:/etc/cas/json
cas.slo.disabled=false
cas.slo.asynchronous=true

This is my json registry.

{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "^https://apple-v100063.corp.apple.com";,
  "name" : "portal",
  "id" : 1039356577785,
  "logoutType" : "FRONT_CHANNEL"
}
After calling the log out, i can see it go inside back channel block inside 
the SingleSignOutHandler.java, while i specified front channel in my json 
registry. Anyone knows why it is, as i want it to redirect thus i need 
front channel to do that for me.
 public boolean process(final HttpServletRequest request, final 
HttpServletResponse response) {
        if (isTokenRequest(request)) {
            logger.trace("Received a token request");
            recordSession(request);
            return true;

        } else if (isBackChannelLogoutRequest(request)) {
            logger.trace("Received a back channel logout request");
            destroySession(request);
            return false;

        } else if (isFrontChannelLogoutRequest(request)) {
            logger.trace("Received a front channel logout request");
            destroySession(request);
            // redirection url to the CAS server
            final String redirectionUrl = 
computeRedirectionToServer(request);
            if (redirectionUrl != null) {
                CommonUtils.sendRedirect(response, redirectionUrl);
            }
            return false;

        } else {
            logger.trace("Ignoring URI for logout: {}", 
request.getRequestURI());
            return true;
        }
    }

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/b62374ad-ddb5-467f-a853-7d51a8303cb0%40apereo.org.

Reply via email to