Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenID -- getting user information?

Tags:

php

openid

I am wondering if it is possible to request more information besides email from Google and get the name of the user also?

Am using JanRain OpenID PHP script.

Thank you

like image 523
Alec Smart Avatar asked Dec 05 '25 05:12

Alec Smart


2 Answers

No, it isn't possible. Google only releases the user's email address. Their server is set up to never give out any more information than that:

See their OpenID page for developers to learn more: http://code.google.com/apis/accounts/docs/OpenID.html

like image 120
Andrew Arnott Avatar answered Dec 11 '25 14:12

Andrew Arnott


Search for OpenID Attribute Exchange -- that's what you want.

  • basic overview
  • formal specification

We haven't looked at it in a while (6 months?) but it was quite rough when we did. Hopefully things have improved since then.

More resources:

http://www.google.com/search?q=openid+attribute+exchange

like image 38
Jeff Atwood Avatar answered Dec 11 '25 12:12

Jeff Atwood



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!