From d2647c14d8ed197769fc04bd79a2d7db94f15732 Mon Sep 17 00:00:00 2001 From: dciangot Date: Fri, 24 Jun 2022 15:49:52 +0200 Subject: [PATCH] Update iam.go --- plugins/s3iam/iam.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/s3iam/iam.go b/plugins/s3iam/iam.go index 73007d7..1145dd5 100644 --- a/plugins/s3iam/iam.go +++ b/plugins/s3iam/iam.go @@ -51,7 +51,13 @@ type WebIdentityResult struct { // Retrieve credentials func (t *IAMProvider) Retrieve() (credentials.Value, error) { - token, err := liboidcagent.GetAccessToken2(t.accountname, 60, "", "", "") + + + token, err := liboidcagent.GetAccessToken(liboidcagent.TokenRequest{ + ShortName: t.accountname, + MinValidPeriod: 60, + Audiences: "minio-af-it", + }) if err != nil { return credentials.Value{}, err }