/** * Logout page hook. * For compatibility with other Auth methods. */ public function logout($redirect) { if ($this->logged_in()) { $this->_saml->logout(); return true; } parent::logout($redirect); }
/** * Called as a plugin is registered to the registry * @param $category String Name of category plugin was registered to * @return boolean True iff plugin initialized successfully; if false, * the plugin will not be registered. */ function register($category, $path) { $success = parent::register($category, $path); $this->addLocaleData(); return $success; }
public function goLoginWithBackUrl() { $back = $_SERVER['REQUEST_URI']; // $toUrl = "/login?auto=login&back=" . urlencode($back); $toUrl = "/login"; AuthPlugin::headerLocation($toUrl); }