DefaultChainBearerTokenProvider

class DefaultChainBearerTokenProvider(val profileName: String? = null, val platformProvider: PlatformProvider = PlatformProvider.System, val httpClient: HttpClientEngine? = null) : CloseableBearerTokenProvider

Default AWS bearer token provider chain used by services marked with @httpBearerAuth

Resolution order:

  1. Profile (ProfileBearerTokenProvider

Closing the chain will close all child providers that implement Closeable.

Parameters

profileName

Override the profile name to use. If not provided it will be resolved internally via environment (see AwsSdkSetting.AwsProfile) or defaulted to default if not configured.

platformProvider

The platform API provider

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.

Constructors

Link copied to clipboard
constructor(profileName: String? = null, platformProvider: PlatformProvider = PlatformProvider.System, httpClient: HttpClientEngine? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val profileName: String? = null

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open suspend override fun resolve(attributes: Attributes): BearerToken