/** * Initiate Shibboleth Logout if neccessary * and then return the user to standard internal * logout URL (it will be in Request URI). If the * user is already logged out of Shibboleth, do nothing. */ private function onLogout() { $suid = $this->userAttrManager->getShibUid(); if ($suid) { $this->logger->info('Initiating Shibboleth logout for: ' . $suid, $this->logCtx); $shibLogout = $this->urlGenerator->linkTo('', 'Shibboleth.sso/Logout', array('return' => $this->request->getRequestUri())); \OCP\Response::redirect($shibLogout); exit; } }
public function redirectTo($ssoURL) { \OCP\Response::redirect($ssoURL); exit; }