Skip to content

logout from CAS server #3

@jgribonvald

Description

@jgribonvald

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions