Aacotroneo\Saml2\Saml2Auth::isAuthenticated PHP Method

isAuthenticated() public method

public isAuthenticated ( ) : boolean
return boolean if a valid user was fetched from the saml assertion this request.
    function isAuthenticated()
    {
        $auth = $this->auth;
        return $auth->isAuthenticated();
    }

Usage Example

Example #1
0
 public function testIsAuthenticated()
 {
     $auth = m::mock('OneLogin_Saml2_Auth');
     $saml2 = new Saml2Auth($auth);
     $auth->shouldReceive('isAuthenticated')->andReturn('return');
     $this->assertEquals('return', $saml2->isAuthenticated());
 }
All Usage Examples Of Aacotroneo\Saml2\Saml2Auth::isAuthenticated