Skip to content

Commit

Permalink
Include SSO clients
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Apr 15, 2024
1 parent 6a3cc25 commit c2a4400
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .changes/7699105e-2f52-4239-abff-631aa6dba005.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "7699105e-2f52-4239-abff-631aa6dba005",
"type": "bugfix",
"description": "STS based identity providers now respect AWS_ENDPOINT_URL_STS environment variable",
"description": "Service client based identity providers now respect AWS_ENDPOINT_URL_SERVICE environment variables",
"issues": [
"awslabs/aws-sdk-kotlin#1210"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public class SsoCredentialsProvider public constructor(
}

val telemetry = coroutineContext.telemetryProvider
val client = SsoClient {
val client = SsoClient.fromEnvironment {
region = ssoRegion
httpClient = this@SsoCredentialsProvider.httpClient
telemetryProvider = telemetry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public class SsoTokenProvider(

private suspend fun refreshToken(oldToken: SsoToken): SsoToken {
val telemetry = coroutineContext.telemetryProvider
SsoOidcClient {
SsoOidcClient.fromEnvironment {
region = ssoRegion
httpClient = this@SsoTokenProvider.httpClient
telemetryProvider = telemetry
Expand Down

0 comments on commit c2a4400

Please sign in to comment.