Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

make scope configurable. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion SpecialOAuth2Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class SpecialOAuth2Client extends SpecialPage {
* $wgOAuth2Client['configuration']['http_bearer_token']
* $wgOAuth2Client['configuration']['query_parameter_token']
* $wgOAuth2Client['configuration']['api_endpoint']
* $wgOAuth2Client['configuration']['scope'],
*/
public function __construct() {
if( !self::OAuthEnabled() ) return;
Expand Down Expand Up @@ -71,7 +72,7 @@ public function __construct() {
// your own implementation
$dataStore = new OAuth2\DataStore\Session();

$scope = null;
$scope = $wgOAuth2Client['configuration']['scope'];

$this->_oAuth2Service = new OAuth2\Service($client, $configuration, $dataStore, $scope);
}
Expand Down