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
13 changes: 9 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ jobs:
fail-fast: false
matrix:
php-version: ['8.2', '8.3', '8.4', '8.5']
runs-on: [ubuntu-latest]
steps:
- run: echo "Temporary disabled"

uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.10.5
with:
php-version: ${{ matrix.php-version }}
# Temporarily disabled bc. of error: "The package "symfony/cache" conflicts with the extension "redis".
# You need to disable it in order to run this application.
# uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.10.5
# with:
# php-version: ${{ matrix.php-version }}

linter:
name: 'Linter'
Expand Down Expand Up @@ -168,7 +173,7 @@ jobs:
# https://github.com/shivammathur/setup-php
uses: shivammathur/setup-php@v2
with:
# Should be the higest supported version, so we can use the newest tools
# Should be the highest supported version, so we can use the newest tools
php-version: '8.5'
tools: composer, composer-require-checker, composer-unused, phpcs
extensions: ctype, date, dom, filter, hash, mbstring, openssl, pcre, soap, spl, xml
Expand Down
10 changes: 10 additions & 0 deletions src/Algorithms/SignatureAlgorithmEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,25 @@
enum SignatureAlgorithmEnum: string
{
case EdDSA = 'EdDSA';

case ES256 = 'ES256';

case ES384 = 'ES384';

case ES512 = 'ES512';

case none = 'none';

case PS256 = 'PS256';

case PS384 = 'PS384';

case PS512 = 'PS512';

case RS256 = 'RS256';

case RS384 = 'RS384';

case RS512 = 'RS512';


Expand Down
15 changes: 15 additions & 0 deletions src/Claims/JwksClaim.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,19 @@ public function jsonSerialize(): array
$this->name => $this->value,
];
}


/**
* Check whether the JWKS contains a key with the given key ID.
*/
public function hasKeyId(string $keyId): bool
{
foreach ($this->value[ClaimsEnum::Keys->value] as $key) {
if ($key[ClaimsEnum::Kid->value] === $keyId) {
return true;
}
}

return false;
}
}
1 change: 1 addition & 0 deletions src/Codebooks/ApplicationTypesEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
enum ApplicationTypesEnum: string
{
case Web = 'web';

case Native = 'native';
}
Loading