src/PhpCas.php
public function forceAuthentication()
    {
        if (self::isAuthenticated()) {
            return true;
        } elseif ($this->getTicket()) {
            return $this->validateCas();
        }
        session_write_close();
        $this->redirectToCas();
        // never reached
        return true;
    }
public function forceAuthentication()
    {
        if (self::isAuthenticated()) {
            return true;
        } elseif ($this->getTicket()) {
            return $this->validateCas();
        }
        session_write_close();
        $this->redirectToCas();
        // never reached
        return true;
    }
public function forceAuthentication ( ) { if ( self :: isAuthenticated ( ) ) { return true ; } elseif ( $ this -> getTicket ( ) ) { return $ this -> validateCas ( ) ; } session_write_close ( ) ; $ this -> redirectToCas ( ) ; // never reached return true ; }
If not authenticated, redirect to CAS.
If authenticated, return true.

@return bool always true.
If not authenticated redirect to CAS . If authenticated return true .