Skip to content

Commit

Permalink
Merge pull request #20 from blazarecki/fix-scope
Browse files Browse the repository at this point in the history
Fix scope usage
  • Loading branch information
weaverryan committed Feb 25, 2016
2 parents ba18ae2 + a38317a commit d5110da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Client/OAuth2Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function redirect(array $scopes = array())
{
$options = array();
if (!empty($scopes)) {
$options['scopes'] = $scopes;
$options['scope'] = $scopes;
}

$url = $this->provider->getAuthorizationUrl($options);
Expand Down
2 changes: 1 addition & 1 deletion Tests/Client/OAuth2ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function setup()

public function testRedirectWithState()
{
$this->provider->getAuthorizationUrl(['scopes' => ['scope1', 'scope2']])
$this->provider->getAuthorizationUrl(['scope' => ['scope1', 'scope2']])
->willReturn('http://coolOAuthServer.com/authorize');
$this->provider->getState()
->willReturn('SOME_RANDOM_STATE');
Expand Down

0 comments on commit d5110da

Please sign in to comment.