From c161c2e1c39d09239e77b86d600dee3040926f3f Mon Sep 17 00:00:00 2001 From: Bobby Rullo Date: Fri, 24 Jun 2016 08:29:45 -0700 Subject: [PATCH] scope: don't validate empty scopes If an empty scope is somehow passed along, it shouldn't be validated when checking refresh token scope. --- scope/scope.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scope/scope.go b/scope/scope.go index 105c7b777e..f13236db07 100644 --- a/scope/scope.go +++ b/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 } }