src/php/main/Eix/Services/Identity/Providers/OpenId.php
public function authenticate()
    {
     Logger::get()->debug('Authenticating OpenID user...');
        if (!$this->isAuthenticated) {
            if (!static::getConsumer()->validate()) {
             Logger::get()->debug('  Failed!');
                throw new NotAuthenticatedException('OpenID authentication failed.');
            } else {
                $this->isAuthenticated = true;
            }
        }

     Logger::get()->debug('  OK!');
    }
public function authenticate()
    {
     Logger::get()->debug('Authenticating OpenID user...');
        if (!$this->isAuthenticated) {
            if (!static::getConsumer()->validate()) {
             Logger::get()->debug('  Failed!');
                throw new NotAuthenticatedException('OpenID authentication failed.');
            } else {
                $this->isAuthenticated = true;
            }
        }

     Logger::get()->debug('  OK!');
    }
public function authenticate ( ) { Logger :: get ( ) -> debug ( 'Authenticating OpenID user...' ) ; if ( ! $ this -> isAuthenticated ) { if ( ! static :: getConsumer ( ) -> validate ( ) ) { Logger :: get ( ) -> debug ( '  Failed!' ) ; throw new NotAuthenticatedException ( 'OpenID authentication failed.' ) ; } else { $ this -> isAuthenticated = true ; } } Logger :: get ( ) -> debug ( '  OK!' ) ; }
Makes sure the user is authenticated. If not, an exception is thrown.
@throws NotAuthenticatedException
Makes sure the user is authenticated . If not an exception is thrown .