class

Amazonite::Core::SsoCredentialsProvider

Inherits Amazonite::Core::CredentialsProvider < Reference < Object

SSO cached-token credentials, i.e. the local state aws sso login writes

  • https://docs.aws.amazon.com/sdkref/latest/guide/access-sso.html

note the two timestamps involved use different formats: the cache file's expiresAt is ISO-8601, but GetRoleCredentials' expiration is epoch milliseconds

Constructors

new(ini_parser : IniParser, env : Fetcher, cache_dir : Path = ((Path.home / ".aws") / "sso") / "cache")
Source

Instance methods

credentials

returns nil when this provider's prerequisite configuration isn't present, so the chain falls through to the next provider

Source