Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ See full documentation on [https://async-aws.com](https://async-aws.com).
| [async-aws/sqs](https://github.com/async-aws/sqs) | [![Latest Stable Version](https://poser.pugx.org/async-aws/sqs/v/stable)](https://packagist.org/packages/async-aws/sqs) [![Total Downloads](https://poser.pugx.org/async-aws/sqs/downloads)](https://packagist.org/packages/async-aws/sqs) | [![](https://github.com/async-aws/sqs/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/sqs/actions) | [![](https://async-aws-pr.github.io/commits-since-release-counter/sqs.svg)](https://github.com/async-aws/sqs/releases) |
| [async-aws/ssm](https://github.com/async-aws/ssm) | [![Latest Stable Version](https://poser.pugx.org/async-aws/ssm/v/stable)](https://packagist.org/packages/async-aws/ssm) [![Total Downloads](https://poser.pugx.org/async-aws/ssm/downloads)](https://packagist.org/packages/async-aws/ssm) | [![](https://github.com/async-aws/ssm/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/ssm/actions) | [![](https://async-aws-pr.github.io/commits-since-release-counter/ssm.svg)](https://github.com/async-aws/ssm/releases) |
| [async-aws/sso](https://github.com/async-aws/sso) | [![Latest Stable Version](https://poser.pugx.org/async-aws/sso/v/stable)](https://packagist.org/packages/async-aws/sso) [![Total Downloads](https://poser.pugx.org/async-aws/sso/downloads)](https://packagist.org/packages/async-aws/sso) | [![](https://github.com/async-aws/sso/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/sso/actions) | [![](https://async-aws-pr.github.io/commits-since-release-counter/sso.svg)](https://github.com/async-aws/sso/releases) |
| [async-aws/sso-oidc](https://github.com/async-aws/sso-oidc) | [![Latest Stable Version](https://poser.pugx.org/async-aws/sso-oidc/v/stable)](https://packagist.org/packages/async-aws/sso-oidc) [![Total Downloads](https://poser.pugx.org/async-aws/sso-oidc/downloads)](https://packagist.org/packages/async-aws/sso-oidc) | [![](https://github.com/async-aws/sso-oidc/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/sso-oidc/actions) | [![](https://async-aws-pr.github.io/commits-since-release-counter/sso-oidc.svg)](https://github.com/async-aws/sso-oidc/releases) |
| [async-aws/step-functions](https://github.com/async-aws/step-functions) | [![Latest Stable Version](https://poser.pugx.org/async-aws/step-functions/v/stable)](https://packagist.org/packages/async-aws/step-functions) [![Total Downloads](https://poser.pugx.org/async-aws/step-functions/downloads)](https://packagist.org/packages/async-aws/step-functions) | [![](https://github.com/async-aws/step-functions/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/step-functions/actions) | [![](https://async-aws-pr.github.io/commits-since-release-counter/step-functions.svg)](https://github.com/async-aws/step-functions/releases) |
| [async-aws/timestream-query](https://github.com/async-aws/timestream-query) | [![Latest Stable Version](https://poser.pugx.org/async-aws/timestream-query/v/stable)](https://packagist.org/packages/async-aws/timestream-query) [![Total Downloads](https://poser.pugx.org/async-aws/timestream-query/downloads)](https://packagist.org/packages/async-aws/timestream-query) | [![](https://github.com/async-aws/timestream-query/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/timestream-query/actions) | [![](https://async-aws-pr.github.io/commits-since-release-counter/timestream-query.svg)](https://github.com/async-aws/timestream-query/releases) |
| [async-aws/timestream-write](https://github.com/async-aws/timestream-write) | [![Latest Stable Version](https://poser.pugx.org/async-aws/timestream-write/v/stable)](https://packagist.org/packages/async-aws/timestream-write) [![Total Downloads](https://poser.pugx.org/async-aws/timestream-write/downloads)](https://packagist.org/packages/async-aws/timestream-write) | [![](https://github.com/async-aws/timestream-write/workflows/BC%20Check/badge.svg?branch=master)](https://github.com/async-aws/timestream-write/actions) | [![](https://async-aws-pr.github.io/commits-since-release-counter/timestream-write.svg)](https://github.com/async-aws/timestream-write/releases) |
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"AsyncAws\\Sns\\": "src/Service/Sns/src",
"AsyncAws\\Sqs\\": "src/Service/Sqs/src",
"AsyncAws\\Ssm\\": "src/Service/Ssm/src",
"AsyncAws\\SsoOidc\\": "src/Service/SsoOidc/src",
"AsyncAws\\Sso\\": "src/Service/Sso/src",
"AsyncAws\\StepFunctions\\": "src/Service/StepFunctions/src",
"AsyncAws\\Symfony\\Bundle\\": "src/Integration/Symfony/Bundle/src",
Expand Down Expand Up @@ -139,6 +140,7 @@
"AsyncAws\\Sns\\Tests\\": "src/Service/Sns/tests",
"AsyncAws\\Sqs\\Tests\\": "src/Service/Sqs/tests",
"AsyncAws\\Ssm\\Tests\\": "src/Service/Ssm/tests",
"AsyncAws\\SsoOidc\\Tests\\": "src/Service/SsoOidc/tests",
"AsyncAws\\Sso\\Tests\\": "src/Service/Sso/tests",
"AsyncAws\\StepFunctions\\Tests\\": "src/Service/StepFunctions/tests",
"AsyncAws\\Symfony\\Bundle\\Tests\\": "src/Integration/Symfony/Bundle/tests",
Expand Down
3 changes: 3 additions & 0 deletions couscous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ menu:
sso:
text: SSO
url: /clients/sso.html
sso-oidc:
text: SSOOIDC
url: /clients/sso-oidc.html
sts:
text: STS
url: /clients/sts.html
Expand Down
3 changes: 2 additions & 1 deletion docs/clients/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ for more information.
| [Comprehend](./comprehend.md) | [async-aws/comprehend](https://packagist.org/packages/async-aws/comprehend) |
| [DynamoDb](./dynamodb.md) | [async-aws/dynamo-db](https://packagist.org/packages/async-aws/dynamo-db) |
| [ECR](./ecr.md) | [async-aws/ecr](https://packagist.org/packages/async-aws/ecr) |
| [ElastiCache](./elasti-cache.md) | [async-aws/elasti-cache](https://packagist.org/packages/async-aws/elasti-cache) |
| [ElastiCache](./elasti-cache.md) | [async-aws/elasti-cache](https://packagist.org/packages/async-aws/elasti-cache) |
| [EventBridge](./event-bridge.md) | [async-aws/event-bridge](https://packagist.org/packages/async-aws/event-bridge) |
| [Firehose](./firehose.md) | [async-aws/event-bridge](https://packagist.org/packages/async-aws/firehose) |
| [IAM](./iam.md) | [async-aws/iam](https://packagist.org/packages/async-aws/iam) |
Expand All @@ -172,6 +172,7 @@ for more information.
| [SQS](./sqs.md) | [async-aws/sqs](https://packagist.org/packages/async-aws/sqs) |
| [SSM](./ssm.md) | [async-aws/ssm](https://packagist.org/packages/async-aws/ssm) |
| [SSO](./sso.md) | [async-aws/sso](https://packagist.org/packages/async-aws/sso) |
| [SSOOIDC](./sso-oidc.md) | [async-aws/sso-oidc](https://packagist.org/packages/async-aws/sso-oidc) |
| [STS](./sts.md) | [async-aws/core](https://packagist.org/packages/async-aws/core) |
| [StepFunctions](./step-functions.md) | [async-aws/step-functions](https://packagist.org/packages/async-aws/step-functions) |
| [TimestreamQuery](./timestream-query.md) | [async-aws/timestream-query](https://packagist.org/packages/async-aws/timestream-query) |
Expand Down
27 changes: 27 additions & 0 deletions docs/clients/sso-oidc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: client
category: clients
name: SSOOIDC
package: async-aws/sso-oidc
fqcn: AsyncAws\Sso\SsoOidcClient
---

## Usage

### Create a token

```php
use AsyncAws\SsoOidc\Input\CreateToken;
use AsyncAws\SsoOidc\SsoOidcClient;

$client = new SsoOidcClient();

$result = $client->createToken(new CreateToken([
'clientId' => 'YourClientId',
'clientSecret' => 'YourClientSecret',
'grantType' => 'authorization_code',
]));

echo 'AccessToken:' . $result->getAccessToken().PHP_EOL;
echo 'Expiration:' . $result->getExpiresIn().PHP_EOL;
```
11 changes: 11 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,22 @@
"source": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sso/2019-06-10/api-2.json",
"documentation": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sso/2019-06-10/docs-2.json",
"pagination": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sso/2019-06-10/paginators-1.json",
"example": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sso/2019-06-10/examples-1.json",
"api-reference": "https://docs.aws.amazon.com/singlesignon/latest/PortalAPIReference",
"methods": [
"GetRoleCredentials"
]
},
"SsoOidc": {
"source": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sso-oidc/2019-06-10/api-2.json",
"documentation": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sso-oidc/2019-06-10/docs-2.json",
"pagination": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sso-oidc/2019-06-10/paginators-1.json",
"example": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sso-oidc/2019-06-10/examples-1.json",
"api-reference": "https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference",
"methods": [
"CreateToken"
]
},
"Sts": {
"source": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sts/2011-06-15/api-2.json",
"documentation": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/sts/2011-06-15/docs-2.json",
Expand Down
4 changes: 4 additions & 0 deletions src/Core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- Support for SsoOidc

### Changed

- AWS enhancement: Documentation updates.
Expand Down
2 changes: 1 addition & 1 deletion src/Core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.23-dev"
"dev-master": "1.24-dev"
}
}
}
14 changes: 14 additions & 0 deletions src/Core/src/AwsClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
use AsyncAws\Sqs\SqsClient;
use AsyncAws\Ssm\SsmClient;
use AsyncAws\Sso\SsoClient;
use AsyncAws\SsoOidc\SsoOidcClient;
use AsyncAws\StepFunctions\StepFunctionsClient;
use AsyncAws\TimestreamQuery\TimestreamQueryClient;
use AsyncAws\TimestreamWrite\TimestreamWriteClient;
Expand Down Expand Up @@ -533,6 +534,19 @@ public function sso(): SsoClient
return $this->serviceCache[__METHOD__];
}

public function ssoOidc(): SsoOidcClient
{
if (!class_exists(SsoOidcClient::class)) {
throw MissingDependency::create('async-aws/sso-oidc', 'SsoOidc');
}

if (!isset($this->serviceCache[__METHOD__])) {
$this->serviceCache[__METHOD__] = new SsoOidcClient($this->configuration, $this->credentialProvider, $this->httpClient, $this->logger);
}

return $this->serviceCache[__METHOD__];
}

public function sts(): StsClient
{
if (!isset($this->serviceCache[__METHOD__])) {
Expand Down
4 changes: 4 additions & 0 deletions src/Integration/Symfony/Bundle/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Added

- Support for SSOOIDC

## 1.12.3

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/Integration/Symfony/Bundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.12-dev"
"dev-master": "1.13-dev"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ public static function getAllServices(): array
'class' => \AsyncAws\Sso\SsoClient::class,
'package' => 'async-aws/sso',
],
'sso_oidc' => [
'class' => \AsyncAws\SsoOidc\SsoOidcClient::class,
'package' => 'async-aws/sso-oidc',
],
'sts' => [
'class' => \AsyncAws\Core\Sts\StsClient::class,
'package' => 'async-aws/core',
Expand Down
5 changes: 5 additions & 0 deletions src/Service/SsoOidc/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.github export-ignore
/tests export-ignore
/.gitignore export-ignore
/Makefile export-ignore
/phpunit.xml.dist export-ignore
3 changes: 3 additions & 0 deletions src/Service/SsoOidc/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [nyholm, jderusse]
2 changes: 2 additions & 0 deletions src/Service/SsoOidc/.github/workflows/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*.yml]
indent_size = 2
38 changes: 38 additions & 0 deletions src/Service/SsoOidc/.github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: BC Check

on:
push:
branches:
- master

jobs:
roave-bc-check:
name: Roave BC Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Modify composer.json
run: |
sed -i -re 's/"require": \{/"minimum-stability": "dev","prefer-stable": true,"require": \{/' composer.json
cat composer.json

git config --local user.email "[email protected]"
git config --local user.name "AsyncAws Bot"
git commit -am "Allow unstable dependencies"

- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2

- name: Install roave/backward-compatibility-check
run: composer require --dev roave/backward-compatibility-check

- name: Roave BC Check
run: vendor/bin/roave-backward-compatibility-check
38 changes: 38 additions & 0 deletions src/Service/SsoOidc/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on:
push:
branches:
- master

jobs:

build:
name: Build
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']

steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Checkout code
uses: actions/checkout@v4

- name: Initialize tests
run: make initialize

- name: Download dependencies
run: |
composer config minimum-stability dev
composer req symfony/phpunit-bridge --no-update
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable

- name: Run tests
run: ./vendor/bin/simple-phpunit
3 changes: 3 additions & 0 deletions src/Service/SsoOidc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/vendor/
*.cache
composer.lock
7 changes: 7 additions & 0 deletions src/Service/SsoOidc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Change Log

## NOT RELEASED

## 1.0.0

First version
21 changes: 21 additions & 0 deletions src/Service/SsoOidc/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2022 Jérémy Derussé, Tobias Nyholm

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
12 changes: 12 additions & 0 deletions src/Service/SsoOidc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.EXPORT_ALL_VARIABLES:

initialize: start-docker
start-docker:
echo "Noop"

test: initialize
./vendor/bin/simple-phpunit

clean: stop-docker
stop-docker:
echo "Noop"
20 changes: 20 additions & 0 deletions src/Service/SsoOidc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# AsyncAws SsoOidc Client

![](https://github.com/async-aws/sso-oidc/workflows/Tests/badge.svg?branch=master)
![](https://github.com/async-aws/sso-oidc/workflows/BC%20Check/badge.svg?branch=master)

An API client for SsoOidc.

## Install

```cli
composer require async-aws/sso-oidc
```

## Documentation

See https://async-aws.com/clients/sso-oidc.html for documentation.

## Contribute

Contributions are welcome and appreciated. Please read https://async-aws.com/contribute/
33 changes: 33 additions & 0 deletions src/Service/SsoOidc/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "async-aws/sso-oidc",
"description": "SsoOidc client, part of the AWS SDK provided by AsyncAws.",
"license": "MIT",
"type": "library",
"keywords": [
"aws",
"amazon",
"sdk",
"async-aws",
"sso-oidc"
],
"require": {
"php": "^7.2.5 || ^8.0",
"ext-json": "*",
"async-aws/core": "^1.9"
},
"autoload": {
"psr-4": {
"AsyncAws\\SsoOidc\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"AsyncAws\\SsoOidc\\Tests\\": "tests/"
}
},
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
}
}
23 changes: 23 additions & 0 deletions src/Service/SsoOidc/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php"
failOnRisky="true"
failOnWarning="true"
>
<coverage>
<include>
<directory>./src</directory>
</include>
</coverage>
<php>
<ini name="error_reporting" value="-1"/>
</php>
<testsuites>
<testsuite name="Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
Loading
Loading