This commit is contained in:
Vitor Bruno de Oliveira Barth 2024-04-25 08:06:07 -04:00 committed by GitHub
commit adf899b6f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -403,6 +403,10 @@ func groupsFromClaims(gp claimsProvider, k string) ([]string, bool) {
}
res = append(res, s)
}
// if remote.Groups is not a []string, but local.Groups is, this will create a fallback
if len(res) == 0 {
return res, false
}
return res, true
}