Hi David,

We’ve had mixed results with mod_auth_cas logout.

One way we have overcome this is using a separate, intermediary (non-CAS) 
logout page to:


·         Remove the MOD_AUTH_CAS and MOD_AUTH_CAS_S cookies from the user’s 
session

·         Redirect the user to the CAS logout page.

We use PHP, could be anything though:

<?php
unset($_SESSION['MOD_AUTH_CAS_S']);
setcookie('MOD_AUTH_CAS_S', '', time()-300, '/');
unset($_SESSION['MOD_AUTH_CAS']);
setcookie('MOD_AUTH_CAS', '', time()-300, '/');
header('Location: https://your.cas.server/cas/logout');
?>

Not sure if that will work for your use case, but perhaps a starting point.

Thanks,
-Neil

From: cas-user@apereo.org [mailto:cas-user@apereo.org] On Behalf Of Travis 
Schmidt
Sent: Thursday, August 18, 2016 9:18 AM
To: David Abney <david.ab...@centre.edu>; cas-user@apereo.org
Subject: Re: [cas-user] Mod_auth_cas Logout Question

Make sure "CASSSOEnabled On" is set in httpd.conf.  If you are using a Service 
Registry in CAS, make sure the Logout Channel is enabled and set to 
BACK_CHANNEL.  This is working for me, but I don't have a proxy in the middle 
either.


On Thu, Aug 18, 2016 at 7:20 AM David Abney 
<david.ab...@centre.edu<mailto:david.ab...@centre.edu>> wrote:
I am using mod_auth_cas v1.1 with a proxy server to login to our PaperCut 
system using CAS v4.2.  We can set a logout URL in PaperCut, which is set to 
the CAS server logout URL.  So, when I logout of PaperCut, it appears I am 
logged out of PaperCut and CAS, but if I go back to the proxy server then 
mod_auth_cas still logs me back into PaperCut without redirecting me to CAS to 
login again.

Is there a way to logout of my session with mod_auth_cas or clear my 
mod_auth_cas cookie?

Thanks,

––––––––––––––––––––
David Abney
ITS Web Developer/Programmer

600 West Walnut Street
Danville, Kentucky 40422
859.238.5761

[email_logo]
www.centre.edu<http://www.centre.edu/>

--
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 cas-user+unsubscr...@apereo.org<mailto:cas-user+unsubscr...@apereo.org>.
To post to this group, send email to 
cas-user@apereo.org<mailto:cas-user@apereo.org>.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/2d6df68f9efe48e2891c540e083a406b%40Exchange-MB2.centre.edu<https://groups.google.com/a/apereo.org/d/msgid/cas-user/2d6df68f9efe48e2891c540e083a406b%40Exchange-MB2.centre.edu?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.
--
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 cas-user+unsubscr...@apereo.org<mailto:cas-user+unsubscr...@apereo.org>.
To post to this group, send email to 
cas-user@apereo.org<mailto:cas-user@apereo.org>.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAC_RtEaFoZ-0LAXZ9MW5CdsmRZ5mwK3TNC9S7pUu0Hd11GcaCw%40mail.gmail.com<https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAC_RtEaFoZ-0LAXZ9MW5CdsmRZ5mwK3TNC9S7pUu0Hd11GcaCw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

-- 
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 cas-user+unsubscr...@apereo.org.
To post to this group, send email to cas-user@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/BN6PR07MB2962E71CD84CF2DFD08E15F0B8150%40BN6PR07MB2962.namprd07.prod.outlook.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to