mirror of
https://github.com/pgsty/minio.git
synced 2026-03-16 01:26:03 +01: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