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 )
Exemplo n.º 1
0
 public function testLogout()
 {
     $auth = m::mock('OneLogin_Saml2_Auth');
     $saml2 = new Saml2Auth($auth);
     $auth->shouldReceive('logout')->with()->once();
     $saml2->logout();
 }
Exemplo n.º 2
0
 public function testLogout()
 {
     $expectedReturnTo = 'http://localhost';
     $expectedSessionIndex = 'session_index_value';
     $expectedNameId = 'name_id_value';
     $auth = m::mock('OneLogin_Saml2_Auth');
     $saml2 = new Saml2Auth($auth);
     $auth->shouldReceive('logout')->with($expectedReturnTo, [], $expectedNameId, $expectedSessionIndex)->once();
     $saml2->logout($expectedReturnTo, $expectedNameId, $expectedSessionIndex);
 }
Exemplo n.º 3
0
 /**
  * Initiate a saml2 logout flow. It will close session on all other SSO services. You should close
  * local session if applicable.
  *
  * @static 
  */
 public static function logout()
 {
     return \Aacotroneo\Saml2\Saml2Auth::logout();
 }