Skip to content

Commit be5a599

Browse files
authored
misc: refactor credentials provider APIs (#1042)
1 parent b80d590 commit be5a599

15 files changed

+97
-82
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"id": "081fc76b-9f25-44d7-bdb1-29db4a1d69ed",
3+
"type": "misc",
4+
"description": "Refactor CredentialsProvider APIs",
5+
"issues": [
6+
"https://github.com/awslabs/aws-sdk-kotlin/issues/946"
7+
]
8+
}

aws-runtime/aws-config/api/aws-config.api

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/DefaultChainBearerTok
3636
public fun <init> (Ljava/lang/String;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;)V
3737
public synthetic fun <init> (Ljava/lang/String;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
3838
public fun close ()V
39+
public final fun getHttpClient ()Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;
40+
public final fun getPlatformProvider ()Laws/smithy/kotlin/runtime/util/PlatformProvider;
41+
public final fun getProfileName ()Ljava/lang/String;
3942
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
4043
}
4144

@@ -44,18 +47,24 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/DefaultChainCredentia
4447
public fun <init> (Ljava/lang/String;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Ljava/lang/String;)V
4548
public synthetic fun <init> (Ljava/lang/String;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
4649
public fun close ()V
50+
public final fun getPlatformProvider ()Laws/smithy/kotlin/runtime/util/PlatformProvider;
51+
public final fun getProfileName ()Ljava/lang/String;
52+
public final fun getRegion ()Ljava/lang/String;
4753
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
4854
}
4955

5056
public final class aws/sdk/kotlin/runtime/auth/credentials/EcsCredentialsProvider : aws/smithy/kotlin/runtime/auth/awscredentials/CloseableCredentialsProvider {
5157
public fun <init> ()V
5258
public fun close ()V
59+
public final fun getPlatformProvider ()Laws/smithy/kotlin/runtime/util/PlatformEnvironProvider;
5360
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
5461
}
5562

5663
public final class aws/sdk/kotlin/runtime/auth/credentials/EnvironmentCredentialsProvider : aws/smithy/kotlin/runtime/auth/awscredentials/CredentialsProvider {
5764
public fun <init> ()V
5865
public fun <init> (Lkotlin/jvm/functions/Function1;)V
66+
public synthetic fun <init> (Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
67+
public final fun getGetEnv ()Lkotlin/jvm/functions/Function1;
5968
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
6069
}
6170

@@ -64,6 +73,9 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/ImdsCredentialsProvid
6473
public fun <init> (Ljava/lang/String;Lkotlin/Lazy;Laws/smithy/kotlin/runtime/util/PlatformEnvironProvider;Laws/smithy/kotlin/runtime/time/Clock;)V
6574
public synthetic fun <init> (Ljava/lang/String;Lkotlin/Lazy;Laws/smithy/kotlin/runtime/util/PlatformEnvironProvider;Laws/smithy/kotlin/runtime/time/Clock;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
6675
public fun close ()V
76+
public final fun getClient ()Lkotlin/Lazy;
77+
public final fun getPlatformProvider ()Laws/smithy/kotlin/runtime/util/PlatformEnvironProvider;
78+
public final fun getProfileOverride ()Ljava/lang/String;
6779
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
6880
}
6981

@@ -88,6 +100,10 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsPro
88100
public fun <init> (Ljava/lang/String;Ljava/lang/String;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;)V
89101
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
90102
public fun close ()V
103+
public final fun getHttpClient ()Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;
104+
public final fun getPlatformProvider ()Laws/smithy/kotlin/runtime/util/PlatformProvider;
105+
public final fun getProfileName ()Ljava/lang/String;
106+
public final fun getRegion ()Ljava/lang/String;
91107
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
92108
}
93109

@@ -100,6 +116,8 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/SsoCredentialsProvide
100116
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/time/Clock;)V
101117
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/time/Clock;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
102118
public final fun getAccountId ()Ljava/lang/String;
119+
public final fun getHttpClient ()Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;
120+
public final fun getPlatformProvider ()Laws/smithy/kotlin/runtime/util/PlatformProvider;
103121
public final fun getRoleName ()Ljava/lang/String;
104122
public final fun getSsoRegion ()Ljava/lang/String;
105123
public final fun getSsoSessionName ()Ljava/lang/String;
@@ -110,6 +128,8 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/SsoCredentialsProvide
110128
public final class aws/sdk/kotlin/runtime/auth/credentials/SsoTokenProvider : aws/smithy/kotlin/runtime/http/auth/BearerTokenProvider {
111129
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JLaws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/time/Clock;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
112130
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JLaws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/time/Clock;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
131+
public final fun getHttpClient ()Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;
132+
public final fun getPlatformProvider ()Laws/smithy/kotlin/runtime/util/PlatformProvider;
113133
public final fun getRefreshBufferWindow-UwyO8pc ()J
114134
public final fun getSsoRegion ()Ljava/lang/String;
115135
public final fun getSsoSessionName ()Ljava/lang/String;
@@ -121,6 +141,7 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/StaticCredentialsProv
121141
public static final field Companion Laws/sdk/kotlin/runtime/auth/credentials/StaticCredentialsProvider$Companion;
122142
public synthetic fun <init> (Laws/sdk/kotlin/runtime/auth/credentials/StaticCredentialsProvider$Builder;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
123143
public fun <init> (Laws/smithy/kotlin/runtime/auth/awscredentials/Credentials;)V
144+
public final fun getCredentials ()Laws/smithy/kotlin/runtime/auth/awscredentials/Credentials;
124145
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
125146
}
126147

@@ -144,6 +165,10 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/StsAssumeRoleCredenti
144165
public synthetic fun <init> (Laws/smithy/kotlin/runtime/auth/awscredentials/CredentialsProvider;Laws/sdk/kotlin/runtime/auth/credentials/AssumeRoleParameters;Ljava/lang/String;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
145166
public synthetic fun <init> (Laws/smithy/kotlin/runtime/auth/awscredentials/CredentialsProvider;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JLaws/smithy/kotlin/runtime/http/engine/HttpClientEngine;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
146167
public synthetic fun <init> (Laws/smithy/kotlin/runtime/auth/awscredentials/CredentialsProvider;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JLaws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
168+
public final fun getAssumeRoleParameters ()Laws/sdk/kotlin/runtime/auth/credentials/AssumeRoleParameters;
169+
public final fun getBootstrapCredentialsProvider ()Laws/smithy/kotlin/runtime/auth/awscredentials/CredentialsProvider;
170+
public final fun getHttpClient ()Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;
171+
public final fun getRegion ()Ljava/lang/String;
147172
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
148173
}
149174

@@ -153,6 +178,10 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/StsWebIdentityCredent
153178
public synthetic fun <init> (Laws/sdk/kotlin/runtime/auth/credentials/AssumeRoleWithWebIdentityParameters;Ljava/lang/String;Laws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
154179
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JLaws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
155180
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JLaws/smithy/kotlin/runtime/util/PlatformProvider;Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
181+
public final fun getHttpClient ()Laws/smithy/kotlin/runtime/http/engine/HttpClientEngine;
182+
public final fun getPlatformProvider ()Laws/smithy/kotlin/runtime/util/PlatformProvider;
183+
public final fun getRegion ()Ljava/lang/String;
184+
public final fun getWebIdentityParameters ()Laws/sdk/kotlin/runtime/auth/credentials/AssumeRoleWithWebIdentityParameters;
156185
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
157186
}
158187

@@ -165,6 +194,7 @@ public final class aws/sdk/kotlin/runtime/auth/credentials/SystemPropertyCredent
165194
public fun <init> ()V
166195
public fun <init> (Lkotlin/jvm/functions/Function1;)V
167196
public synthetic fun <init> (Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
197+
public final fun getGetProperty ()Lkotlin/jvm/functions/Function1;
168198
public fun resolve (Laws/smithy/kotlin/runtime/util/Attributes;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
169199
}
170200

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/DefaultChainBearerTokenProvider.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ import aws.smithy.kotlin.runtime.util.PlatformProvider
3030
* are NOT managed by the provider. Caller is responsible for closing.
3131
*/
3232
public class DefaultChainBearerTokenProvider(
33-
private val profileName: String? = null,
34-
private val platformProvider: PlatformProvider = PlatformProvider.System,
35-
httpClient: HttpClientEngine? = null,
33+
public val profileName: String? = null,
34+
public val platformProvider: PlatformProvider = PlatformProvider.System,
35+
public val httpClient: HttpClientEngine? = null,
3636
) : CloseableBearerTokenProvider {
3737

3838
private val chain = BearerTokenProviderChain(

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/DefaultChainCredentialsProvider.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ import aws.smithy.kotlin.runtime.util.PlatformProvider
4242
* @return the newly-constructed credentials provider
4343
*/
4444
public class DefaultChainCredentialsProvider constructor(
45-
private val profileName: String? = null,
46-
private val platformProvider: PlatformProvider = PlatformProvider.System,
45+
public val profileName: String? = null,
46+
public val platformProvider: PlatformProvider = PlatformProvider.System,
4747
httpClient: HttpClientEngine? = null,
48-
region: String? = null,
48+
public val region: String? = null,
4949
) : CloseableCredentialsProvider {
5050

5151
private val manageEngine = httpClient == null
@@ -86,7 +86,7 @@ public class DefaultChainCredentialsProvider constructor(
8686
* This allows it to be part of the default chain and any failures result in the chain to move onto the next provider.
8787
*/
8888
private class StsWebIdentityProvider(
89-
val platformProvider: PlatformProvider,
89+
val platformProvider: PlatformProvider = PlatformProvider.System,
9090
val httpClient: HttpClientEngine? = null,
9191
) : CloseableCredentialsProvider {
9292
override suspend fun resolve(attributes: Attributes): Credentials {

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/EcsCredentialsProvider.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,13 @@ private const val PROVIDER_NAME = "EcsContainer"
6161
*
6262
*/
6363
public class EcsCredentialsProvider internal constructor(
64-
private val platformProvider: PlatformEnvironProvider,
64+
public val platformProvider: PlatformEnvironProvider = PlatformProvider.System,
6565
httpClient: HttpClientEngine? = null,
6666
) : CloseableCredentialsProvider {
6767

68-
public constructor() : this(PlatformProvider.System)
69-
7068
private val manageEngine = httpClient == null
71-
private val httpClient = httpClient ?: DefaultHttpEngine()
69+
private val httpClient: HttpClientEngine = httpClient ?: DefaultHttpEngine()
70+
7271
override suspend fun resolve(attributes: Attributes): Credentials {
7372
val logger = coroutineContext.logger<EcsCredentialsProvider>()
7473
val authToken = AwsSdkSetting.AwsContainerAuthorizationToken.resolve(platformProvider)

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/EnvironmentCredentialsProvider.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ private val SESSION_TOKEN = AwsSdkSetting.AwsSessionToken.envVar
2222
/**
2323
* A [CredentialsProvider] which reads from `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_SESSION_TOKEN`.
2424
*/
25-
public class EnvironmentCredentialsProvider
26-
public constructor(private val getEnv: (String) -> String?) : CredentialsProvider {
27-
public constructor() : this(PlatformProvider.System::getenv)
25+
public class EnvironmentCredentialsProvider(
26+
public val getEnv: (String) -> String? = PlatformProvider.System::getenv,
27+
) : CredentialsProvider {
2828

2929
private fun requireEnv(variable: String): String =
3030
getEnv(variable) ?: throw ProviderConfigurationException("Missing value for environment variable `$variable`")

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ImdsCredentialsProvider.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ internal expect class SdkIOException : Exception // FIXME move this to the prope
5151
* @param platformProvider the [PlatformEnvironProvider] instance
5252
*/
5353
public class ImdsCredentialsProvider(
54-
private val profileOverride: String? = null,
55-
private val client: Lazy<InstanceMetadataProvider> = lazy { ImdsClient() },
56-
private val platformProvider: PlatformEnvironProvider = PlatformProvider.System,
54+
public val profileOverride: String? = null,
55+
public val client: Lazy<InstanceMetadataProvider> = lazy { ImdsClient() },
56+
public val platformProvider: PlatformEnvironProvider = PlatformProvider.System,
5757
private val clock: Clock = Clock.System,
5858
) : CloseableCredentialsProvider {
5959
private var previousCredentials: Credentials? = null

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/ProfileCredentialsProvider.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ import kotlin.coroutines.coroutineContext
7272
* are NOT managed by the provider. Caller is responsible for closing.
7373
*/
7474
public class ProfileCredentialsProvider(
75-
private val profileName: String? = null,
76-
private val region: String? = null,
77-
private val platformProvider: PlatformProvider = PlatformProvider.System,
78-
private val httpClient: HttpClientEngine? = null,
75+
public val profileName: String? = null,
76+
public val region: String? = null,
77+
public val platformProvider: PlatformProvider = PlatformProvider.System,
78+
public val httpClient: HttpClientEngine? = null,
7979
) : CloseableCredentialsProvider {
8080
private val namedProviders = mapOf(
8181
"Environment" to EnvironmentCredentialsProvider(platformProvider::getenv),
@@ -164,7 +164,7 @@ public class ProfileCredentialsProvider(
164164
creds: Credentials,
165165
region: LazyAsyncValue<String?>,
166166
): CredentialsProvider = StsAssumeRoleCredentialsProvider(
167-
credentialsProvider = StaticCredentialsProvider(creds),
167+
bootstrapCredentialsProvider = StaticCredentialsProvider(creds),
168168
roleArn = roleArn,
169169
region = region.get(),
170170
roleSessionName = sessionName,

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/SsoCredentialsProvider.kt

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -56,50 +56,27 @@ private const val PROVIDER_NAME = "SSO"
5656
* **Additional Resources**
5757
* * [Configuring the AWS CLI to use AWS Single Sign-On](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html)
5858
* * [AWS Single Sign-On User Guide](https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html)
59+
*
60+
* @param accountId The AWS account ID that temporary AWS credentials will be resolved for
61+
* @param roleName The IAM role in the AWS account that temporary AWS credentials will be resolved for
62+
* @param startUrl The start URL (also known as the "User Portal URL") provided by the SSO service
63+
* @param ssoRegion The AWS region where the SSO directory for the given [startUrl] is hosted.
64+
* @param ssoSessionName The SSO Session name from the profile. If a session name is given an [SsoTokenProvider]
65+
* will be used to fetch tokens.
66+
* @param httpClient The [HttpClientEngine] instance to use to make requests. NOTE: This engine's resources and lifetime
67+
* are NOT managed by the provider. Caller is responsible for closing.
68+
* @param platformProvider The platform provider
69+
* @param clock The source of time for the provider
5970
*/
6071
public class SsoCredentialsProvider public constructor(
61-
/**
62-
* The AWS account ID that temporary AWS credentials will be resolved for
63-
*/
6472
public val accountId: String,
65-
66-
/**
67-
* The IAM role in the AWS account that temporary AWS credentials will be resolved for
68-
*/
6973
public val roleName: String,
70-
71-
/**
72-
* The start URL (also known as the "User Portal URL") provided by the SSO service
73-
*/
7474
public val startUrl: String,
75-
76-
/**
77-
* The AWS region where the SSO directory for the given [startUrl] is hosted.
78-
*/
7975
public val ssoRegion: String,
80-
81-
/**
82-
* The SSO Session name from the profile. If a session name is given an [SsoTokenProvider]
83-
* will be used to fetch tokens.
84-
*/
8576
public val ssoSessionName: String? = null,
86-
87-
/**
88-
* The [HttpClientEngine] instance to use to make requests. NOTE: This engine's resources and lifetime
89-
* are NOT managed by the provider. Caller is responsible for closing.
90-
*/
91-
private val httpClient: HttpClientEngine? = null,
92-
93-
/**
94-
* The platform provider
95-
*/
96-
private val platformProvider: PlatformProvider = PlatformProvider.System,
97-
98-
/**
99-
* The source of time for the provider
100-
*/
77+
public val httpClient: HttpClientEngine? = null,
78+
public val platformProvider: PlatformProvider = PlatformProvider.System,
10179
private val clock: Clock = Clock.System,
102-
10380
) : CredentialsProvider {
10481

10582
private val ssoTokenProvider = ssoSessionName?.let { sessName ->

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/SsoTokenProvider.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public class SsoTokenProvider(
6060
public val startUrl: String,
6161
public val ssoRegion: String,
6262
public val refreshBufferWindow: Duration = DEFAULT_SSO_TOKEN_REFRESH_BUFFER_SECONDS.seconds,
63-
private val httpClient: HttpClientEngine? = null,
64-
private val platformProvider: PlatformProvider = PlatformProvider.System,
63+
public val httpClient: HttpClientEngine? = null,
64+
public val platformProvider: PlatformProvider = PlatformProvider.System,
6565
private val clock: Clock = Clock.System,
6666
) : BearerTokenProvider {
6767

0 commit comments

Comments
 (0)