@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?


On Apr 8, 11:10 pm, "Mike C. Fletcher" <[email protected]> wrote:
> Raj wrote:
> > I am still stuck at reading user attributes from an OpenID.
> > Anybody have ideas?
>
> You need to use SREG or similar extension to request the user attributes
> from the OpenID provider.  I have adding this support on my list of
> things to do, but I'm not currently doing web development, so it will
> likely be a while before I get back to that.  I have a branch of
> repoze.who.openid that does the SREG stuff, but the maintainer wants it
> revamped to avoid doing the registration (i.e. adding to the DB) by
> end-running the repoze.who stuff.  I'm sorely tempted to just code the
> thing directly against the python openid package and directly generate
> an authtkt cookie instead of using a repoze.who plugin... but again, I
> just don't have time to work on it now.  Keep in mind that the user can
> say 'no', and some providers, such as Launchpad will return an
> effectively "null" attribute set unless/until you register with them...
> oh, and on some providers, the users can lie about their identity
> (create pseudonyms), should be fine on google and yahoo, though.
>
> Good luck,
> Mike
>
>
>
>
>
> > On Apr 3, 1:35 pm, Raj <[email protected]> wrote:
>
> >> Good news.
> >> I succeeded in authenticating with OpenID.
> >> Now the problem is, I need to gather the user's verified email address
> >> and name.
> >> Anybody have suggestions regarding this if we allow to be signed in
> >> using Google or Yahoo OpenID accounts?
>
> >> On Apr 2, 7:53 pm, Raj <[email protected]> wrote:
>
> >>> @Diez
> >>> Thanks for the reply.
> >>> Now my requirements became more precise.
> >>> *)I want to use OpenID(eg. google account) to provide Authentication
> >>> for my site
> >>> *) I need to provide elevated privileges to 'some' of the users. So I
> >>> need to relate some open id accounts to my Groups and Permissions
>
> >>> I am trying implement it in my TG2.0 application using the tutorial
> >>> provided inhttp://turbogears.org/2.1/docs/main/Auth/OpenID.html.
> >>> Any help is appreciated.
>
> --
> ________________________________________________
>   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