From a563333c01efbb6963d2ae16f188ae9901764b01 Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Mon, 25 Nov 2024 18:19:16 +0100 Subject: [PATCH] Add refresh token to WebIdentity OpenID response (#2023) OpenID can return the refresh token along with the token ID and the access token. Adding this latter to use it in refresh a user claims --- pkg/credentials/sts_web_identity.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/credentials/sts_web_identity.go b/pkg/credentials/sts_web_identity.go index f1c76c78e..787f0a38d 100644 --- a/pkg/credentials/sts_web_identity.go +++ b/pkg/credentials/sts_web_identity.go @@ -58,9 +58,10 @@ type WebIdentityResult struct { // WebIdentityToken - web identity token with expiry. type WebIdentityToken struct { - Token string - AccessToken string - Expiry int + Token string + AccessToken string + RefreshToken string + Expiry int } // A STSWebIdentity retrieves credentials from MinIO service, and keeps track if