mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
fix: extract array type for policy claim if present (#10014)
This commit is contained in:
@@ -357,8 +357,9 @@ func (sts *stsAPIHandlers) AssumeRoleWithJWT(w http.ResponseWriter, r *http.Requ
|
||||
// be set and configured on your identity provider as part of
|
||||
// JWT custom claims.
|
||||
var policyName string
|
||||
if v, ok := m[iamPolicyClaimNameOpenID()]; ok {
|
||||
policyName, _ = v.(string)
|
||||
policySet, ok := iampolicy.GetPoliciesFromClaims(m, iamPolicyClaimNameOpenID())
|
||||
if ok {
|
||||
policyName = strings.Join(policySet.ToSlice(), ",")
|
||||
}
|
||||
|
||||
var subFromToken string
|
||||
|
||||
Reference in New Issue
Block a user