Skip to content
Snippets Groups Projects
Commit c161c2e1 authored by Bobby Rullo's avatar Bobby Rullo
Browse files

scope: don't validate empty scopes

If an empty scope is somehow passed along, it shouldn't be validated
when checking refresh token scope.
parent 3b8d704c
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,9 @@ func (s Scopes) Contains(other Scopes) bool { ...@@ -41,6 +41,9 @@ func (s Scopes) Contains(other Scopes) bool {
for _, scope := range other { for _, scope := range other {
if _, ok := rScopes[scope]; !ok { if _, ok := rScopes[scope]; !ok {
if scope == "" {
continue
}
return false return false
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment