Skip to content

Commit

Permalink
Merge pull request #557 from Slamdunk/lcobucci_clock_v3
Browse files Browse the repository at this point in the history
Update `lcobucci/jwt` to ^4.3.0 and `lcobucci/clock` to v3
  • Loading branch information
Ocramius authored Jan 5, 2023
2 parents de81e55 + 9466a35 commit e00f031
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 82 deletions.
20 changes: 12 additions & 8 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/test export-ignore
/tools export-ignore
/examples export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
.travis.yml export-ignore
phpunit.xml.dist
/.github export-ignore
/test export-ignore
/tools export-ignore
/examples export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/composer.lock export-ignore
/infection.json.dist export-ignore
/phpcs.xml.dist export-ignore
/psalm.xml export-ignore
/phpunit.xml.dist export-ignore
/renovate.json export-ignore
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"php": "~8.1.0 || ~8.2.0",
"ext-json": "*",
"dflydev/fig-cookies": "^3.0.0",
"lcobucci/jwt": "^4.2.1",
"lcobucci/clock": "^2.3.0",
"lcobucci/jwt": "^4.3.0",
"lcobucci/clock": "^3.0.0",
"psr/http-message": "^1.0.1",
"psr/http-server-handler": "^1.0.1",
"psr/http-server-middleware": "^1.0.1"
Expand Down
93 changes: 23 additions & 70 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions test/StoragelessTest/Http/SessionMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ public function testWillIgnoreRequestsWithNonPlainTokens(): void
{
$unknownTokenType = $this->createMock(Token::class);
$fakeParser = $this->createMock(ParserInterface::class);
$configuration = Configuration::forUnsecuredSigner();
$configuration = Configuration::forSymmetricSigner(
new Sha256(),
self::makeRandomSymmetricKey(),
);

$fakeParser->expects(self::atLeastOnce())
->method('parse')
Expand Down Expand Up @@ -285,7 +288,10 @@ public function testWillIgnoreRequestsWithTokensFromFuture(callable $middlewareF
public function testWillIgnoreUnSignedTokens(callable $middlewareFactory): void
{
$middleware = $middlewareFactory();
$configuration = Configuration::forUnsecuredSigner();
$configuration = Configuration::forSymmetricSigner(
new Sha256(),
self::makeRandomSymmetricKey(),
);
$unsignedToken = (new ServerRequest())
->withCookieParams([
SessionMiddleware::DEFAULT_COOKIE => $configuration->builder()
Expand Down

0 comments on commit e00f031

Please sign in to comment.