Skip to content

Commit 4db6f20

Browse files
authored
Merge pull request #749 from nextcloud/dependabot/composer/3rdparty/firebase/php-jwt-6.8.1
Chore(deps): Bump firebase/php-jwt from 6.8.0 to 6.8.1 in /3rdparty
2 parents ab34cfe + d118f80 commit 4db6f20

5 files changed

Lines changed: 30 additions & 22 deletions

File tree

3rdparty/composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

3rdparty/vendor/composer/installed.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"packages": [
33
{
44
"name": "firebase/php-jwt",
5-
"version": "v6.8.0",
6-
"version_normalized": "6.8.0.0",
5+
"version": "v6.8.1",
6+
"version_normalized": "6.8.1.0",
77
"source": {
88
"type": "git",
99
"url": "https://github.com/firebase/php-jwt.git",
10-
"reference": "48b0210c51718d682e53210c24d25c5a10a2299b"
10+
"reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26"
1111
},
1212
"dist": {
1313
"type": "zip",
14-
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/48b0210c51718d682e53210c24d25c5a10a2299b",
15-
"reference": "48b0210c51718d682e53210c24d25c5a10a2299b",
14+
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/5dbc8959427416b8ee09a100d7a8588c00fb2e26",
15+
"reference": "5dbc8959427416b8ee09a100d7a8588c00fb2e26",
1616
"shasum": ""
1717
},
1818
"require": {
@@ -30,7 +30,7 @@
3030
"ext-sodium": "Support EdDSA (Ed25519) signatures",
3131
"paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
3232
},
33-
"time": "2023-06-20T16:45:35+00:00",
33+
"time": "2023-07-14T18:33:00+00:00",
3434
"type": "library",
3535
"installation-source": "dist",
3636
"autoload": {
@@ -62,7 +62,7 @@
6262
],
6363
"support": {
6464
"issues": "https://github.com/firebase/php-jwt/issues",
65-
"source": "https://github.com/firebase/php-jwt/tree/v6.8.0"
65+
"source": "https://github.com/firebase/php-jwt/tree/v6.8.1"
6666
},
6767
"install-path": "../firebase/php-jwt"
6868
},

3rdparty/vendor/composer/installed.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => '__root__',
44
'pretty_version' => 'dev-master',
55
'version' => 'dev-master',
6-
'reference' => '9e1d473ffc81fec3364154a1d1157f939bf1539c',
6+
'reference' => '77ae8b3972462df3f009a64cd9f51710ab849210',
77
'type' => 'library',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -13,16 +13,16 @@
1313
'__root__' => array(
1414
'pretty_version' => 'dev-master',
1515
'version' => 'dev-master',
16-
'reference' => '9e1d473ffc81fec3364154a1d1157f939bf1539c',
16+
'reference' => '77ae8b3972462df3f009a64cd9f51710ab849210',
1717
'type' => 'library',
1818
'install_path' => __DIR__ . '/../../',
1919
'aliases' => array(),
2020
'dev_requirement' => false,
2121
),
2222
'firebase/php-jwt' => array(
23-
'pretty_version' => 'v6.8.0',
24-
'version' => '6.8.0.0',
25-
'reference' => '48b0210c51718d682e53210c24d25c5a10a2299b',
23+
'pretty_version' => 'v6.8.1',
24+
'version' => '6.8.1.0',
25+
'reference' => '5dbc8959427416b8ee09a100d7a8588c00fb2e26',
2626
'type' => 'library',
2727
'install_path' => __DIR__ . '/../firebase/php-jwt',
2828
'aliases' => array(),

3rdparty/vendor/firebase/php-jwt/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [6.8.1](https://github.com/firebase/php-jwt/compare/v6.8.0...v6.8.1) (2023-07-14)
4+
5+
6+
### Bug Fixes
7+
8+
* accept float claims but round down to ignore them ([#492](https://github.com/firebase/php-jwt/issues/492)) ([3936842](https://github.com/firebase/php-jwt/commit/39368423beeaacb3002afa7dcb75baebf204fe7e))
9+
* different BeforeValidException messages for nbf and iat ([#526](https://github.com/firebase/php-jwt/issues/526)) ([0a53cf2](https://github.com/firebase/php-jwt/commit/0a53cf2986e45c2bcbf1a269f313ebf56a154ee4))
10+
311
## [6.8.0](https://github.com/firebase/php-jwt/compare/v6.7.0...v6.8.0) (2023-06-14)
412

513

3rdparty/vendor/firebase/php-jwt/src/JWT.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,18 @@ public static function decode(
152152

153153
// Check the nbf if it is defined. This is the time that the
154154
// token can actually be used. If it's not yet that time, abort.
155-
if (isset($payload->nbf) && $payload->nbf > ($timestamp + static::$leeway)) {
155+
if (isset($payload->nbf) && floor($payload->nbf) > ($timestamp + static::$leeway)) {
156156
throw new BeforeValidException(
157-
'Cannot handle token prior to ' . \date(DateTime::ISO8601, $payload->nbf)
157+
'Cannot handle token with nbf prior to ' . \date(DateTime::ISO8601, (int) $payload->nbf)
158158
);
159159
}
160160

161161
// Check that this token has been created before 'now'. This prevents
162162
// using tokens that have been created for later use (and haven't
163163
// correctly used the nbf claim).
164-
if (!isset($payload->nbf) && isset($payload->iat) && $payload->iat > ($timestamp + static::$leeway)) {
164+
if (!isset($payload->nbf) && isset($payload->iat) && floor($payload->iat) > ($timestamp + static::$leeway)) {
165165
throw new BeforeValidException(
166-
'Cannot handle token prior to ' . \date(DateTime::ISO8601, $payload->iat)
166+
'Cannot handle token with iat prior to ' . \date(DateTime::ISO8601, (int) $payload->iat)
167167
);
168168
}
169169

0 commit comments

Comments
 (0)