Skip to content

Commit 5f31d8d

Browse files
committed
lcobucci/jwt updated
1 parent d52764b commit 5f31d8d

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"ext-json": "*",
1717
"google/protobuf": "~3.15.8",
1818
"grpc/grpc": "^1.35",
19-
"lcobucci/jwt": "^3.4",
19+
"lcobucci/jwt": "^3.4.6 || ^4.1.5",
2020
"phpseclib/phpseclib": "^2.0|^3.0",
2121
"psr/log": "~1.0"
2222
},

src/Iam.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,7 @@ protected function getJwtToken()
231231
{
232232
$now = new DateTimeImmutable;
233233

234-
$key = '';
235-
236-
if ($this->config('private_key'))
237-
{
238-
$key = JWT\Signer\Key\InMemory::plainText($this->config('private_key'));
239-
}
240-
else if ($this->config('private_key_file'))
241-
{
242-
$key = JWT\Signer\Key\LocalFileReference::file($this->config('private_key_file'));
243-
}
234+
$key = JWT\Signer\Key\InMemory::plainText($this->config('private_key'));
244235

245236
$config = JWT\Configuration::forSymmetricSigner(
246237
new Sha256,

0 commit comments

Comments
 (0)