Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F183629
phorge.diff
k__nard (Pascal Migazzi)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Authored By
k__nard
Sep 24 2022, 18:26
2022-09-24 18:26:44 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
phorge.diff
View Options
diff --git a/src/applications/auth/adapter/PhutilTwitchAuthAdapter.php b/src/applications/auth/adapter/PhutilTwitchAuthAdapter.php
index dce2c7e2f0..364ac55eac 100644
--- a/src/applications/auth/adapter/PhutilTwitchAuthAdapter.php
+++ b/src/applications/auth/adapter/PhutilTwitchAuthAdapter.php
@@ -14,7 +14,7 @@ final class PhutilTwitchAuthAdapter extends PhutilOAuthAuthAdapter {
}
public function getAccountID() {
- return $this->getOAuthAccountData('_id');
+ return $this->getOAuthAccountData('id');
}
public function getAccountEmail() {
@@ -22,11 +22,11 @@ final class PhutilTwitchAuthAdapter extends PhutilOAuthAuthAdapter {
}
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 @@ final class PhutilTwitchAuthAdapter extends PhutilOAuthAuthAdapter {
}
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 @@ final class PhutilTwitchAuthAdapter extends PhutilOAuthAuthAdapter {
return id(new PhutilTwitchFuture())
->setClientID($this->getClientID())
->setAccessToken($this->getAccessToken())
- ->setRawTwitchQuery('user')
+ ->setRawTwitchQuery('users')
->resolve();
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
134582
Default Alt Text
phorge.diff (1 KB)
Attached To
Mode
T15122: Twitch auth provider is not working - old twitch API has been decomissioned
Attached
Detach File
Event Timeline
Log In to Comment