| Issue 42: | Consumer (client) side: solution to obtain from Google email, first and last name, country and language | |
| 1 person starred this issue and may be notified of changes. | Back to list |
For those who wants to fetch user data of users using Google openid, here is a patch.
(Attached you'll find a diff)
1) Add this function:
protected function nsTranslate($field)
{
switch($field) {
case "email": return("contact/email");
case "country": return("contact/country/home");
case "firstname": return("namePerson/first");
case "lastname": return("namePerson/last");
case "language": return("pref/language");
}
return($field);
}
2) In function axParams(), change:
$this->aliases[$alias]='http://axschema.org/'.$field;
to:
$this->aliases[$alias]='http://axschema.org/'.$this->nsTranslate($field);
This should send *FOR GOOGLE* the right openid.ns.ax values in request.
To use it see second attached file
Jun 22, 2011
Project Member
#1
mewp...@gmail.com
Jun 22, 2011
Sorry, I didn'd find your wiki page: it's very clear :)
Jun 22, 2011
(No comment was entered for this change.)
Status:
Invalid
|