Browse Source

scope: don't validate empty scopes

If an empty scope is somehow passed along, it shouldn't be validated
when checking refresh token scope.
pull/484/head
Bobby Rullo 10 years ago
parent
commit
c161c2e1c3
  1. 3
      scope/scope.go

3
scope/scope.go

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

Loading…
Cancel
Save