Skip to content

Commit

Permalink
Update iam.go
Browse files Browse the repository at this point in the history
  • Loading branch information
dciangot authored Jun 24, 2022
1 parent ef45fe6 commit d2647c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/s3iam/iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d2647c1

Please sign in to comment.