Skip to content

Commit 29d1fbb

Browse files
authored
Update PhutilMediaWikiAuthAdapter.php
1 parent bbc5027 commit 29d1fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oauth/PhutilMediaWikiAuthAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function getExtraTokenParameters() {
100100
protected function loadOAuthAccountData() {
101101
$uri = id(new PhutilURI($this->getMediaWikiURI('rest.php/oauth2/resource/profile')));
102102
$future = new HTTPSFuture($uri);
103-
$token_header = sprintf('token %s', $this->getAccessToken());
103+
$token_header = sprintf('Bearer %s', $this->getAccessToken());
104104
$future->addHeader('Authorization', $token_header);
105105
list($body) = $future->resolvex();
106106
try {

0 commit comments

Comments
 (0)