phpfetchopenidlightopenid

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().


Solution

  • 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