Skip to content

Commit 8d27631

Browse files
author
Jaspar Gupta
authored
Merge pull request #8 from designmynight/asterisks-support
fix: support for asterisks
2 parents 518ce37 + 662b1e2 commit 8d27631

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Introspect.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ public function mustHaveScopes(array $requiredScopes = [])
5656
{
5757
$result = $this->getIntrospectionResult();
5858
$givenScopes = explode(' ', $result['scope']);
59+
60+
if (in_array('*', $givenScopes)) {
61+
return;
62+
}
63+
5964
$missingScopes = array_diff($requiredScopes, $givenScopes);
6065

6166
if (count($missingScopes) > 0) {

0 commit comments

Comments
 (0)