How to debug?

eyos - July 7, 2008 - 08:05
Project:Google Apps Authentication
Version:5.x-1.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello,

Thanks for this module! I'm really excited to get this working for my company intranet. I've created both public and private DER files, uploaded the public DER file to the Google Apps control panel, set the config parameters in the module's settings and set the SSO-settings in the Google control panel. However, the functionality doesn't seem to work. Whenever I need to login to Google (for example, Gmail), I'm redirected to the login form of my Drupal site. When I enter the login criteria (user@domain.com + password), I'm still not logged-in at Gmail.

How can I debug this? For example, I'm not sure if the path's to the pub and priv certificates in the googleauth settings are right, because our server has some jailroot-functionality.

Thanks for your help!

Floris.

#1

angad_singh - January 26, 2009 - 14:01

Debugging is an absolutely essential tool for such modules. Even I couldn't get it working without taking a peek at what's going on behind the scenes when I found many problems with my xmlsec installation. What I've done for debugging is a bit tricky but it works:

- Start the PHP debugging client (I use netbeans)
- Let it load the default file index.php file
- Open the Google Service URL (example mail.yourdomain.com)
- You see the googleauth signin page with 'Proceed to authenticate' (if your XMLSec stuff works right)
- Simply append &XDEBUG_SESSION_START=netbeans-xdebug to the end of the URL and load it again (press enter in firefox - not refresh otherwise it'll load the old URL again)
- Netbeans catches the debugging client's request (xdebug in my case)

 
 

Drupal is a registered trademark of Dries Buytaert.