Raj wrote:
> @Mike
> Thanks very much for your valuable reply.
> Actually I just need to use Google and Yahoo OpenIDs only. I found
> Google returns the 'email' attribute of an authenticated account when
> given the following parameters appended to Google's OpenID url
> https://www.google.com/accounts/o8/id
>
> &openid.ns.ax=http://openid.net/srv/ax/1.0
> &openid.ax.mode=fetch_request
> &openid.ax.type.email=http://axschema.org/contact/email
> &openid.ax.required=email
>
> These parameters also needs to be appended when a request is made by
> the OpenID plugin.
> How can I do that? Which code I need to be edited?
>   
Yup, AX is the alternative to SREG.  You can add those values directly
using the PyOpenID plugin.  If you want to use the repoze.who.openid
plugin then you need to alter that codebase.  You can see the
approximate changes in my branch on bitbucket:

   
https://[email protected]/mcfletch/repoze.who.plugins.openid_mcfletch/

just substitute the AX for the SREG namespace (and keys).

HTH,
Mike

-- 
________________________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to