Implementation of CAS Logout Action of CASAuthentication

Implementation of CAS Logout Action of CASAuthentication

Issue ID:2940
Issue Category:enhancement
Component:plugin
Priority:normal
Status:active
Assigned:Unassigned
Version:1.0
Milestone:1.0
Keywords:CAS, CASAuthentication, logout

The plugin CASAuthentication works fine. I hope the CAS Logout Action was Implemented.

Updates

#1

Can you describe the feature you're wondering about a bit better?

If it isn't implemented, I should be able to implement it pretty easily.

#2

I didn't fully understand the CAS. I saw a post here http://forum.status.net/discussion/705/cas-logout-action/#Item_1, so I submitted this ticket.
In addition, I will ask you a question on CAS via http://status.net/user/135/contact.
Thanks!

#3

Another problem, the CASAuthentication does not work with phpCAS 1.1.3.

#4

What they are asking is can the cas logout feature be implemented. When you click the logout link it doesn't redirect you to cas to log you out. I would be happy to create a patch if someone could tell me where the plugin can hook into the logout method.

#5

Keywords:+logout
Milestone:» 1.0
Version:0.9» 1.0

Add this function to CasAuthenticationPlugin.php

function onEndLogout($action)
{
$action->logout();
global $casSettings;
phpCAS::client(CAS_VERSION_2_0,$casSettings['server'],$casSettings['port'],$casSettings['path'],false);
$orig_url = $_SERVER['SCRIPT_URI'];
$url = str_replace('/main/logout', '', $orig_url);
phpCAS::logout(array("url"=>$url));
return true;
}

Login or Register to modify this issue, or to receive updates by email.

You can also subscribe to the RSS feed for updates to this issue.