Skip to content

Commit f19d3e9

Browse files
committed
Updated OAuthFilter to reflect API changes
1 parent 0d44111 commit f19d3e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Filters/OAuthFilter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ public function getScopes()
102102
*/
103103
public function validateScopes()
104104
{
105-
if (!empty($this->scopes) and !$this->authorizer->hasScope($this->scopes)) {
106-
throw new InvalidScopeException(implode(',', $this->scopes));
105+
foreach($this->scopes as $scope) {
106+
if(!$this->authorizer->hasScope($scope)) {
107+
throw new InvalidScopeException(implode(',', $this->scopes));
108+
}
107109
}
108110
}
109111
}

0 commit comments

Comments
 (0)