forked from mystiq/dex
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:
parent
3b8d704c9c
commit
c161c2e1c3
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue