Aacotroneo\Saml2\Saml2Auth::logout PHP Method

logout() public method

Initiate a saml2 logout flow. It will close session on all other SSO services. You should close local session if applicable.
public logout ( $returnTo = null, $nameId = null, $sessionIndex = null )
    function logout($returnTo = null, $nameId = null, $sessionIndex = null)
    {
        $auth = $this->auth;
        $auth->logout($returnTo, [], $nameId, $sessionIndex);
    }

Usage Example

Example #1
0
 public function testLogout()
 {
     $auth = m::mock('OneLogin_Saml2_Auth');
     $saml2 = new Saml2Auth($auth);
     $auth->shouldReceive('logout')->with()->once();
     $saml2->logout();
 }
All Usage Examples Of Aacotroneo\Saml2\Saml2Auth::logout