Page MenuHomePhorge

D25057.1736567740.diff
No OneTemporary

D25057.1736567740.diff

diff --git a/src/applications/auth/adapter/PhutilTwitchAuthAdapter.php b/src/applications/auth/adapter/PhutilTwitchAuthAdapter.php
--- a/src/applications/auth/adapter/PhutilTwitchAuthAdapter.php
+++ b/src/applications/auth/adapter/PhutilTwitchAuthAdapter.php
@@ -14,7 +14,7 @@
}
public function getAccountID() {
- return $this->getOAuthAccountData('_id');
+ return $this->getOAuthAccountData('id');
}
public function getAccountEmail() {
@@ -22,11 +22,11 @@
}
public function getAccountName() {
- return $this->getOAuthAccountData('name');
+ return $this->getOAuthAccountData('login');
}
public function getAccountImageURI() {
- return $this->getOAuthAccountData('logo');
+ return $this->getOAuthAccountData('profile_image_url');
}
public function getAccountURI() {
@@ -42,11 +42,11 @@
}
protected function getAuthenticateBaseURI() {
- return 'https://api.twitch.tv/kraken/oauth2/authorize';
+ return 'https://id.twitch.tv/oauth2/authorize';
}
protected function getTokenBaseURI() {
- return 'https://api.twitch.tv/kraken/oauth2/token';
+ return 'https://id.twitch.tv/oauth2/token';
}
public function getScope() {
@@ -69,7 +69,7 @@
return id(new PhutilTwitchFuture())
->setClientID($this->getClientID())
->setAccessToken($this->getAccessToken())
- ->setRawTwitchQuery('user')
+ ->setRawTwitchQuery('users')
->resolve();
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 03:55 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1108658
Default Alt Text
D25057.1736567740.diff (1 KB)

Event Timeline