Aacotroneo\Saml2\Saml2Auth::login PHP Method

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 )
    function login($returnTo = null)
    {
        $auth = $this->auth;
        $auth->login($returnTo);
    }

Usage Example

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