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(), eaven with print_r().
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
This is how I use it. This is the file openid.php in the folder lightopenid. In the class make the following additional functions -
Now make your file example login.php which is called when you want to authenticate. There might be several copies of this file for different authentication domains etc.
You need to call
getAttributes()
after$openid->validate()
not before.Remember: