Merge pull request #386 from jonnybarnes/dependabot/composer/lcobucci/jwt-4.2.1
Bump lcobucci/jwt from 4.1.5 to 4.2.1
This commit is contained in:
commit
6c85e12afa
3 changed files with 24 additions and 24 deletions
|
@ -85,7 +85,7 @@ class AppServiceProvider extends ServiceProvider
|
|||
|
||||
// Configure JWT builder
|
||||
$this->app->bind('Lcobucci\JWT\Configuration', function () {
|
||||
$key = InMemory::plainText('testing');
|
||||
$key = InMemory::plainText(config('app.key'));
|
||||
|
||||
$config = Configuration::forSymmetricSigner(new Sha256(), $key);
|
||||
|
||||
|
|
38
composer.lock
generated
38
composer.lock
generated
|
@ -2176,16 +2176,16 @@
|
|||
},
|
||||
{
|
||||
"name": "lcobucci/jwt",
|
||||
"version": "4.1.5",
|
||||
"version": "4.2.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/lcobucci/jwt.git",
|
||||
"reference": "fe2d89f2eaa7087af4aa166c6f480ef04e000582"
|
||||
"reference": "72ac6d807ee51a70ad376ee03a2387e8646e10f3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/lcobucci/jwt/zipball/fe2d89f2eaa7087af4aa166c6f480ef04e000582",
|
||||
"reference": "fe2d89f2eaa7087af4aa166c6f480ef04e000582",
|
||||
"url": "https://api.github.com/repos/lcobucci/jwt/zipball/72ac6d807ee51a70ad376ee03a2387e8646e10f3",
|
||||
"reference": "72ac6d807ee51a70ad376ee03a2387e8646e10f3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -2201,12 +2201,12 @@
|
|||
"infection/infection": "^0.21",
|
||||
"lcobucci/coding-standard": "^6.0",
|
||||
"mikey179/vfsstream": "^1.6.7",
|
||||
"phpbench/phpbench": "^1.0",
|
||||
"phpbench/phpbench": "^1.2",
|
||||
"phpstan/extension-installer": "^1.0",
|
||||
"phpstan/phpstan": "^0.12",
|
||||
"phpstan/phpstan-deprecation-rules": "^0.12",
|
||||
"phpstan/phpstan-phpunit": "^0.12",
|
||||
"phpstan/phpstan-strict-rules": "^0.12",
|
||||
"phpstan/phpstan": "^1.4",
|
||||
"phpstan/phpstan-deprecation-rules": "^1.0",
|
||||
"phpstan/phpstan-phpunit": "^1.0",
|
||||
"phpstan/phpstan-strict-rules": "^1.0",
|
||||
"phpunit/php-invoker": "^3.1",
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
|
@ -2234,7 +2234,7 @@
|
|||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/lcobucci/jwt/issues",
|
||||
"source": "https://github.com/lcobucci/jwt/tree/4.1.5"
|
||||
"source": "https://github.com/lcobucci/jwt/tree/4.2.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
@ -2246,7 +2246,7 @@
|
|||
"type": "patreon"
|
||||
}
|
||||
],
|
||||
"time": "2021-09-28T19:34:56+00:00"
|
||||
"time": "2022-08-19T23:14:07+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/commonmark",
|
||||
|
@ -4727,16 +4727,16 @@
|
|||
},
|
||||
{
|
||||
"name": "stella-maris/clock",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://gitlab.com/stella-maris/clock.git",
|
||||
"reference": "8a0a967896df4c63417385dc69328a0aec84d9cf"
|
||||
"url": "git@gitlab.com:stella-maris/clock.git",
|
||||
"reference": "447879c53ca0b2a762cdbfba5e76ccf4deca9158"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://gitlab.com/api/v4/projects/stella-maris%2Fclock/repository/archive.zip?sha=8a0a967896df4c63417385dc69328a0aec84d9cf",
|
||||
"reference": "8a0a967896df4c63417385dc69328a0aec84d9cf",
|
||||
"url": "https://gitlab.com/api/v4/projects/stella-maris%2Fclock/repository/archive.zip?sha=447879c53ca0b2a762cdbfba5e76ccf4deca9158",
|
||||
"reference": "447879c53ca0b2a762cdbfba5e76ccf4deca9158",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -4766,11 +4766,7 @@
|
|||
"point in time",
|
||||
"psr20"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://gitlab.com/stella-maris/clock/-/issues",
|
||||
"source": "https://gitlab.com/stella-maris/clock/-/tree/0.1.4"
|
||||
},
|
||||
"time": "2022-04-17T14:12:26+00:00"
|
||||
"time": "2022-08-05T07:21:25+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/console",
|
||||
|
|
|
@ -37,7 +37,11 @@ class TokenServiceTest extends TestCase
|
|||
$this->assertSame($data, $validData);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
/**
|
||||
* @test
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function tokensWithDifferentSigningKeyThrowsException(): void
|
||||
{
|
||||
$this->expectException(RequiredConstraintsViolated::class);
|
||||
|
@ -56,7 +60,7 @@ class TokenServiceTest extends TestCase
|
|||
->withClaim('me', $data['me'])
|
||||
->withClaim('scope', $data['scope'])
|
||||
->withClaim('nonce', bin2hex(random_bytes(8)))
|
||||
->getToken($config->signer(), InMemory::plainText('r4andomk3y'))
|
||||
->getToken($config->signer(), InMemory::plainText(random_bytes(32)))
|
||||
->toString();
|
||||
|
||||
$service = new TokenService();
|
||||
|
|
Loading…
Add table
Reference in a new issue