I'm setting up an authentication method using OpenID for my PHP application using CakePHP 1.3. The OpenID authentication is done using the Apache module mod_auth_open_idc. If the authentication is successful, the user is redirected to the application and his ID, amongst other information, is written as an environment variable. I can retrieve the value using PHP's getenv()
function.
Until now, authentication was made in a classical way : user had to type his credentials in a login page. The problem is that as far as I know, CakePHP's authentication component is linked to the login page.
Is there a way to bypass that page and to simulate a login using the data returned by the Apache call to the OpenID service ?