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 ) |
public function testLogout() { $auth = m::mock('OneLogin_Saml2_Auth'); $saml2 = new Saml2Auth($auth); $auth->shouldReceive('logout')->with()->once(); $saml2->logout(); }
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); }
/** * 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(); }