We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d44111 commit f19d3e9Copy full SHA for f19d3e9
src/Filters/OAuthFilter.php
@@ -102,8 +102,10 @@ public function getScopes()
102
*/
103
public function validateScopes()
104
{
105
- if (!empty($this->scopes) and !$this->authorizer->hasScope($this->scopes)) {
106
- throw new InvalidScopeException(implode(',', $this->scopes));
+ foreach($this->scopes as $scope) {
+ if(!$this->authorizer->hasScope($scope)) {
107
+ throw new InvalidScopeException(implode(',', $this->scopes));
108
+ }
109
}
110
111
0 commit comments