From 3ebacc0b1aefa433057bdcb64b2525d960c3e1ca Mon Sep 17 00:00:00 2001 From: Anis Eleuch Date: Fri, 22 Nov 2024 17:39:41 +0100 Subject: [PATCH] Add refresh token to WebIdentity OpenID response 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