PHP Classes

Getting a GMail address

Recommend this page to a friend!

      Simple OpenID PHP Class  >  All threads  >  Getting a GMail address  >  (Un) Subscribe thread alerts  
Subject:Getting a GMail address
Summary:ValidateWithServer fails with Google using custom parameters
Messages:3
Author:Kari Pätilä
Date:2008-11-01 16:45:29
Update:2008-12-22 03:18:00
 

  1. Getting a GMail address   Reply   Report abuse  
Picture of Kari Pätilä Kari Pätilä - 2008-11-01 16:45:29
When I add the following to GetRedirectURL()

$params['openid.ns.ext1']='http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0';
$params['openid.ext1.mode']='fetch_request';
$params['openid.ext1.type.email']='http%3A%2F%2Faxschema.org%2Fcontact%2Femail';
$params['openid.ext1.required']='email';

then ValidateWithServer() fails with "invalid authorization".

How should I modify the ValidateWithServer() function in order to get this working?

  2. Re: Getting a GMail address   Reply   Report abuse  
Picture of Kari Pätilä Kari Pätilä - 2008-11-02 12:28:02 - In reply to message 1 from Kari Pätilä
Never mind, I figured it out:

$arr_underscores = array('ns_', 'pape_', 'sreg_','ext1_','type_','value_');
$arr_periods = array('ns.', 'pape.', 'sreg.','ext1.','type.','value.');

  3. Re: Getting a GMail address   Reply   Report abuse  
Picture of Steve Love Steve Love - 2008-12-22 03:18:00 - In reply to message 1 from Kari Pätilä
There's a new version of the class on my website that adds AX compatibility in a better way.

http://stevelove.org

 
For more information send a message to info at phpclasses dot org.