mirror of
https://github.com/minio/minio.git
synced 2025-11-30 06:51:47 +01:00
fix: use correct dummy ARN for claim-based OIDC provider when listing access keys (#21549)
fix: use correct dummy ARN for claim-based OIDC provider When listing OIDC access keys, use the correct ARN when looking up the provider configuration for the claim-based provider. Without this it was impossible to list access keys for a claim-based provider, only for a role-policy-based provider. Fixes minio/minio#21548
This commit is contained in:
parent
da532ab93d
commit
d0f50cdd9b
@ -173,6 +173,8 @@ func (a adminAPIHandlers) ListAccessKeysOpenIDBulk(w http.ResponseWriter, r *htt
|
|||||||
if _, ok := accessKey.Claims[iamPolicyClaimNameOpenID()]; !ok {
|
if _, ok := accessKey.Claims[iamPolicyClaimNameOpenID()]; !ok {
|
||||||
continue // skip if no roleArn and no policy claim
|
continue // skip if no roleArn and no policy claim
|
||||||
}
|
}
|
||||||
|
// claim-based provider is in the roleArnMap under dummy ARN
|
||||||
|
arn = dummyRoleARN
|
||||||
}
|
}
|
||||||
matchingCfgName, ok := roleArnMap[arn]
|
matchingCfgName, ok := roleArnMap[arn]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user