-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
A logout request from cas isn't considered, without that the CAS auth isn't complete
For that you have to :
in IniCAS fonction add these lines :
if ( $aliasName ) phpCAS::setFixedServiceURL($aliasName);
// try to have a property to activate debug
// phpCAS::setDebug('/tmp/phpCAS.log');
phpCAS::setSingleSignoutCallback('handleSingleLogout');
phpCAS::setPostAuthenticateCallback('linkCasTicketToUser');
// set a property for certificate path (usefull for security)
if ($cas_cert_path != '') {
phpCAS::setCasServerCACert($cas_cert_path, true);
} else {
phpCAS::setNoCasServerValidation();
}
// set a property for casRealHosts
phpCAS::handleLogoutRequests(true, $casRealHosts);
-> where linkCasTicketToUser and handleSingleLogout are global functions
-> where linkCasTicketToUser will associate to the user's properties the CAS ticket, it's to link it to the owncloud session
-> where handleSingleLogout will close the session in backend, it will retrive the user from the CAS Ticket mapped when logged auth
Sorry my problem is that i don't know how to do these two functions on owncloud
Metadata
Metadata
Assignees
Labels
No labels