Skip to content

Commit 892a843

Browse files
authored
Add Sso Oidc Client (#1829)
1 parent c3a9b01 commit 892a843

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- Support for SsoOidc
8+
59
### Changed
610

711
- AWS enhancement: Documentation updates.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"extra": {
4040
"branch-alias": {
41-
"dev-master": "1.23-dev"
41+
"dev-master": "1.24-dev"
4242
}
4343
}
4444
}

src/AwsClientFactory.php

+14
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
use AsyncAws\Sqs\SqsClient;
4646
use AsyncAws\Ssm\SsmClient;
4747
use AsyncAws\Sso\SsoClient;
48+
use AsyncAws\SsoOidc\SsoOidcClient;
4849
use AsyncAws\StepFunctions\StepFunctionsClient;
4950
use AsyncAws\TimestreamQuery\TimestreamQueryClient;
5051
use AsyncAws\TimestreamWrite\TimestreamWriteClient;
@@ -533,6 +534,19 @@ public function sso(): SsoClient
533534
return $this->serviceCache[__METHOD__];
534535
}
535536

537+
public function ssoOidc(): SsoOidcClient
538+
{
539+
if (!class_exists(SsoOidcClient::class)) {
540+
throw MissingDependency::create('async-aws/sso-oidc', 'SsoOidc');
541+
}
542+
543+
if (!isset($this->serviceCache[__METHOD__])) {
544+
$this->serviceCache[__METHOD__] = new SsoOidcClient($this->configuration, $this->credentialProvider, $this->httpClient, $this->logger);
545+
}
546+
547+
return $this->serviceCache[__METHOD__];
548+
}
549+
536550
public function sts(): StsClient
537551
{
538552
if (!isset($this->serviceCache[__METHOD__])) {

0 commit comments

Comments
 (0)