Skip to content

Commit

Permalink
feat: Upgraded jwt libraries and drop php8.1 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Aug 29, 2024
1 parent 2d71b08 commit 25e99dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.1', '8.2', '8.3']
php-version: ['8.2', '8.3']
steps:
- uses: shivammathur/setup-php@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
}
],
"require": {
"php": ">=8.1",
"lcobucci/jwt": "^4.1",
"php": ">=8.2",
"lcobucci/jwt": "^5.3",
"symfony/http-client": "6.4.*"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/JwtConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

interface JwtConfigurationFactory
{
public function create(): Configuration;
public function create(): ?Configuration;
}
4 changes: 1 addition & 3 deletions src/Validation/Constraint/UserInfoEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ public function assert(Token $token): void
$response->getContent();
} catch (ExceptionInterface $e) {
throw new ConstraintViolation(
'Userinfo cannot be fetch from Identity provider',
$e->getCode(),
$e
'Userinfo cannot be fetch from Identity provider'
);
}
}
Expand Down

0 comments on commit 25e99dd

Please sign in to comment.