Наследование: extends YagePlugin
Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /**
  * 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;
 }
Пример #3
0
 public function goLoginWithBackUrl()
 {
     $back = $_SERVER['REQUEST_URI'];
     //        $toUrl = "/login?auto=login&back=" . urlencode($back);
     $toUrl = "/login";
     AuthPlugin::headerLocation($toUrl);
 }