Skip to content

Commit

Permalink
Merge pull request #2757 from sgayangi/scopes-fix
Browse files Browse the repository at this point in the history
Fix bug in scope validation
  • Loading branch information
Krishanx92 authored Feb 3, 2025
2 parents d2cc664 + e38f060 commit bec77f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway/enforcer/internal/authorization/scope_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func ValidateScopes(rch *requestconfig.Holder, subAppDataStore *datastore.Subscr
}
}
found := false
for requiredScope := range requiredScopes {
for scope := range scopes {
for _, requiredScope := range requiredScopes {
for _, scope := range scopes {
if requiredScope == scope {
found = true
break
Expand Down

0 comments on commit bec77f4

Please sign in to comment.