scope: don't validate empty scopes

If an empty scope is somehow passed along, it shouldn't be validated
when checking refresh token scope.
This commit is contained in:
Bobby Rullo 2016-06-24 08:29:45 -07:00
parent 3b8d704c9c
commit c161c2e1c3

View file

@ -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
}
}