Skip to content

Commit 45b5cef

Browse files
authored
Merge pull request #15 from StuBez/scope-separator
Specify scope separator in Oauth provider
2 parents 3c0c366 + 40633ad commit 45b5cef

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Oauth2Provider.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88

99
class Oauth2Provider extends GenericProvider
1010
{
11-
12-
}
11+
protected function getScopeSeparator()
12+
{
13+
return ' ';
14+
}
15+
}

src/OauthCredentialManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getState()
5555

5656
public function getAuthorizationUrl()
5757
{
58-
$redirectUrl = $this->oauthProvider->getAuthorizationUrl(['scope' => implode(' ', config('xero.oauth.scopes'))]);
58+
$redirectUrl = $this->oauthProvider->getAuthorizationUrl(['scope' => config('xero.oauth.scopes')]);
5959
$this->session->put($this->cacheKey, $this->oauthProvider->getState());
6060

6161
return $redirectUrl;

0 commit comments

Comments
 (0)