Skip to content

Commit

Permalink
Impl scope separator
Browse files Browse the repository at this point in the history
  • Loading branch information
ada-u committed Nov 24, 2017
1 parent f00d511 commit 8342c27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $provider = new ChatWorkProvider(
);

$url = $provider->getAuthorizationUrl([
'scope' => 'users.all:read rooms.all:read_write'
'scope' => ['users.all:read', 'rooms.all:read_write']
]);
```

Expand Down
8 changes: 8 additions & 0 deletions src/ChatWorkProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ protected function createResourceOwner(array $response, AccessToken $token): Res
);
}

/**
* @inheritdoc
*/
protected function getScopeSeparator()
{
return ' ';
}

/**
* @inheritdoc
*/
Expand Down

0 comments on commit 8342c27

Please sign in to comment.