Hi Freddie,

I don't have direct experience with delegating authentication to PHPbb3, but, depending on the mechanism they use and whatever authentication API it may expose, it could be a simple matter to create a Zend_Auth adapter that uses PHPbb3 authentication.

Just implement Zend_Auth_Adapter_Interface like this:

<?php
require_once 'Zend/Auth/Adapter/Interface.php';
class My_Auth_Phpbb3 implements Zend_Auth_Adapter_Interface
{
    /**
     * @return Zend_Auth_Result
     * @throws Zend_Auth_Adapter_Exception
     */
    public function authenticate()
    {
        // delegate authentication to PHPbb3, returning a
        // Zend_Auth_Result object
    }
}
?>

You may alternatively wish to directly use PHPbb3's authentication mechanism, which may be invoked using a Front Controller plugin.

Hope this helps!

Best regards,
Darby

Freddie Witherden wrote:
Hi,

I am interested if anyone has any experience integrating Zend_Auth with
PHPbb3 so that a website based around the Zend Framework can delegate
authentication to PHPbb.

While there is a documented API for authentication I am not exactly sure
how to integrate it. Has anyone else done this before?

Regards Freddie.


Reply via email to