mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
Complete missing bits of Google OAuth2 provider
Summary: Added support for profile images and URLs. Test Plan: Looked at /settings/panel/oauth-google/, refreshed profile picture, click profile URL, saw correct profile. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4556
This commit is contained in:
parent
bad95c15ce
commit
727c326e2e
1 changed files with 5 additions and 3 deletions
|
@ -95,13 +95,15 @@ final class PhabricatorOAuthProviderGoogle extends PhabricatorOAuthProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function retrieveUserProfileImage() {
|
public function retrieveUserProfileImage() {
|
||||||
// No apparent API access to Plus yet.
|
$uri = idx($this->userData, 'picture');
|
||||||
|
if ($uri) {
|
||||||
|
return HTTPSFuture::loadContent($uri);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function retrieveUserAccountURI() {
|
public function retrieveUserAccountURI() {
|
||||||
// No apparent API access to Plus yet.
|
return 'https://plus.google.com/'.$this->userData['id'];
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function retrieveUserRealName() {
|
public function retrieveUserRealName() {
|
||||||
|
|
Loading…
Reference in a new issue