SsoTokenProvider

constructor(ssoSessionName: String, startUrl: String, ssoRegion: String, refreshBufferWindow: Duration = DEFAULT_SSO_TOKEN_REFRESH_BUFFER_SECONDS.seconds, httpClient: HttpClientEngine? = null, platformProvider: PlatformProvider = PlatformProvider.System, clock: Clock = Clock.System)

Parameters

ssoSessionName

the name of the SSO Session from the shared config file to load tokens for

startUrl

the start URL (also known as the "User Portal URL") provided by the SSO service

ssoRegion

the AWS region where the SSO directory for the given startUrl is hosted.

refreshBufferWindow

amount of time before the actual credential expiration time when credentials are considered expired. For example, if credentials are expiring in 15 minutes, and the buffer time is 10 seconds, then any requests made after 14 minutes and 50 seconds will load new credentials. Defaults to 5 minutes.

httpClient

the HttpClientEngine instance to use to make requests. NOTE: This engine's resources and lifetime are NOT managed by the provider. Caller is responsible for closing.

platformProvider

the platform provider to use

clock

the source of time for the provider