Commit c161c2e1 authored by Bobby Rullo's avatar Bobby Rullo

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
......@@ -41,6 +41,9 @@ func (s Scopes) Contains(other Scopes) bool {
for _, scope := range other {
if _, ok := rScopes[scope]; !ok {
if scope == "" {
continue
}
return false
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment