Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions src/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,11 @@ abstract protected function getDefaultScopes();
* Returns the string that should be used to separate scopes when building
* the URL for requesting an access token.
*
* @return string Scope separator, defaults to ','
* @return string Scope separator, defaults to ' '
*/
protected function getScopeSeparator()
{
return ',';
return ' ';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions test/src/Provider/AbstractProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public function testScopesOverloadedDuringAuthorize()
parse_str(parse_url($url, PHP_URL_QUERY), $qs);

$this->assertArrayHasKey('scope', $qs);
$this->assertSame('foo,bar', $qs['scope']);
$this->assertSame('foo bar', $qs['scope']);
}

public function testAuthorizationStateIsRandom()
Expand Down Expand Up @@ -697,7 +697,7 @@ public function testGetAccessTokenWithScope($method)
->once()
->with(
['client_id' => 'mock_client_id', 'client_secret' => 'mock_secret', 'redirect_uri' => 'none'],
['code' => 'mock_authorization_code', 'scope' => 'foo,bar']
['code' => 'mock_authorization_code', 'scope' => 'foo bar']
)
->andReturn([]);

Expand Down