Hey guys I am using open id authentication on my website and after authenticating I am getting a url from openid providers i.e yahoo and google
http://www.mysite.com/openid-login.php?
openid.identity=https://me.yahoo.com/a/1234567&
openid.ax.value.nickname=john&
[email protected]&
http://www.mysite.com/openid-login.php?
openid.identity=https://www.google.com/accounts/o8/1234567&
[email protected]&
openid.ext1.value.country=IN
I have trimmed the urls a bit for clarity. I would like to create a single function for both that can set the email(if exists), nickname(if exits), identity(openid ina ) in an array and return the values. eg.
function userdetails(array_get){
......
......
return $userdetails;
}
$userdetails =userdetails($_GET);
$userdetails['nickname'] would give me the nickname if exists and similarly for the email and identity. Thanks