Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sephster committed Jun 6, 2023
2 parents 54942a7 + 54674d5 commit 52fd94d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ on:

jobs:
tests:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [8.0, 8.1, 8.2]
php: [8.1, 8.2]
os: [ubuntu-22.04]
stability: [prefer-lowest, prefer-stable]
include:
- os: ubuntu-20.04
php: 8.0
stability: prefer-lowest
- os: ubuntu-20.04
php: 8.0
stability: prefer-stable

runs-on: ${{ matrix.os }}

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"lcobucci/jwt": "^4.3 || ^5.0",
"psr/http-message": "^1.0.1 || ^2.0",
"defuse/php-encryption": "^2.3",
"ext-json": "*",
"lcobucci/clock": "^2.2 || ^3.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/AuthorizationValidators/BearerTokenValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function validateAuthorization(ServerRequestInterface $request)
$constraints = $this->jwtConfiguration->validationConstraints();
$this->jwtConfiguration->validator()->assert($token, ...$constraints);
} catch (RequiredConstraintsViolated $exception) {
throw OAuthServerException::accessDenied('Access token could not be verified');
throw OAuthServerException::accessDenied('Access token could not be verified', null, $exception);
}

$claims = $token->claims();
Expand Down
3 changes: 0 additions & 3 deletions tests/Utils/CryptKeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ public function testKeyString()

public function testUnsupportedKeyType()
{
if (\str_starts_with(\phpversion(), '8.0')) {
$this->markTestSkipped('Cannot generate key on PHP 8.0 runner. Investigating');
}
$this->expectException(\LogicException::class);
$this->expectExceptionMessage('Unable to read key');

Expand Down

0 comments on commit 52fd94d

Please sign in to comment.