Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fetch account data from a provider with LightOpenID?

I'm having problems with a small OpenID-library called LightOpenID . I can authenticate to almost all providers, but I don't know how to fetch the data from the provider. I only get Array(), even with print_r().

like image 837
Pwntus Avatar asked Jul 05 '10 11:07

Pwntus


1 Answers

You need to call getAttributes() after $openid->validate() not before.

Remember:

Note that it does not guarantee that any of the required/optional parameters will be present

like image 167
Pete Avatar answered Sep 20 '22 15:09

Pete