Pyramid + Velruse + OpenID via Google: how to get EMail

69 views
Skip to first unread message

Kris

unread,
Jun 13, 2013, 6:16:59 AM6/13/13
to pylons-...@googlegroups.com
I've added authentication via velruse and the openid provider on Google. It works?. But the profile info I get back is only the google username.

I want for example to get the email adress from this account. I believe this should be possible, but have no clue how to force velruse to request for this info or where to get it. Do I need to use the specific Google OAuth2 provider for example?

Any help is welcome.

Kris

Michael Merickel

unread,
Jun 13, 2013, 2:02:08 PM6/13/13
to Pylons
The google_hybrid provider should be providing you with the email address. I will double check that it's working properly later tonight though as I'm in the process working on python3 support for velruse. Note that the openid+oauth1 API is deprecated by google, however, so you should look into using the google_oauth2 provider.



Kris

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jonathan Vanasco

unread,
Jun 13, 2013, 4:59:10 PM6/13/13
to pylons-...@googlegroups.com
I haven't used velruse, but with 3rd party auth libraries you often need to specify the 'scope' or 'attributes' that you want returned.

It looks like velruse has support for scope and attributes in the source code, so you may not be using those options.  (or it could not be working properly as michael noted )

Michael Merickel

unread,
Jun 14, 2013, 12:50:57 AM6/14/13
to Pylons
The profile already contains the 'verifiedEmail' key for google_hybrid with the email address. I have updated the provider on master to also populate the 'emails' list which is what I assume you're checking.


On Thu, Jun 13, 2013 at 3:59 PM, Jonathan Vanasco <jvan...@gmail.com> wrote:
I haven't used velruse, but with 3rd party auth libraries you often need to specify the 'scope' or 'attributes' that you want returned.

It looks like velruse has support for scope and attributes in the source code, so you may not be using those options.  (or it could not be working properly as michael noted )

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages