You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this format the config file can have (multiple) [sso-session my-session] blocks.
The SDK will keep track of tokens per session in .aws/sso/cache/${sha1 session-name}.json
And will store both an access_token and a refresh_token
Amazon SSO gives you a
refresh_token
which you can use to renew youraccess_token
by making a call toAmazonka.SSOOIDC.CreateToken
Legacy non-refreshable format
This is what we currently use and looks like this:
Automatic token refresh format
In this format the config file can have (multiple)
[sso-session my-session]
blocks.The SDK will keep track of tokens per session in
.aws/sso/cache/${sha1 session-name}.json
And will store both an
access_token
and arefresh_token
Reference implementation
access_token
andrefresh_token
are stored in a filename based on the hash of the session name in~/.aws/sso/cache
access_token
is expired. We can request a new token with therefresh_token
by callingAmazonka.SSOOIDC.CreateToken
Example in other SDK: https://github.com/aws/aws-sdk-go-v2/blob/config/v1.18.25/credentials/ssocreds/sso_token_provider.go
The text was updated successfully, but these errors were encountered: