Skip to content

Commit a563333

Browse files
authored
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
1 parent 7fad06c commit a563333

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/credentials/sts_web_identity.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ type WebIdentityResult struct {
5858

5959
// WebIdentityToken - web identity token with expiry.
6060
type WebIdentityToken struct {
61-
Token string
62-
AccessToken string
63-
Expiry int
61+
Token string
62+
AccessToken string
63+
RefreshToken string
64+
Expiry int
6465
}
6566

6667
// A STSWebIdentity retrieves credentials from MinIO service, and keeps track if

0 commit comments

Comments
 (0)