Getekid / cas

A phpBB 3.3.x plugin to enable login with CAS Authentication
2 stars 3 forks source link

Add Single Sign Out/In support #9

Closed xiangzhai closed 8 years ago

xiangzhai commented 8 years ago

phpCAS supports Single Sign Out when, for example, logout from WordPress, then phpBB3 need to logout automatically.

So I just added

if ($this->user->data['username'] == 'Anonymous') {                        
            $_SESSION['phpBBCAS'] = true;                                          
            $result = $this->auth->login('', '');                                  
        } else {                                                                   
            if (!array_key_exists('phpCAS', $_SESSION))                            
                $this->user->session_kill();                                       
        }

in event/cas_login_listener.php to support single sign out/in.

xiangzhai commented 8 years ago

bring in new Login with DB issue... fixing