login() public method

Initiate a saml2 login flow. It will redirect! Before calling this, check if user is authenticated (here in saml2). That would be true when the assertion was received this request.
public login ( $returnTo = null )
Example #1
0
 public function testLogin()
 {
     $auth = m::mock('OneLogin_Saml2_Auth');
     $saml2 = new Saml2Auth($auth);
     $auth->shouldReceive('login')->once();
     $saml2->login();
 }
 /**
  * Initiate a saml2 login flow. It will redirect! Before calling this, check if user is
  * authenticated (here in saml2). That would be true when the assertion was received this request.
  *
  * @static 
  */
 public static function login($returnTo = null)
 {
     return \Aacotroneo\Saml2\Saml2Auth::login($returnTo);
 }