wordpress
wordpress copied to clipboard
build(deps): bump firebase/php-jwt from 5.0.0 to 6.0.0 in /system
Bumps firebase/php-jwt from 5.0.0 to 6.0.0.
Release notes
Sourced from firebase/php-jwt's releases.
v6.0.0
Note: This version is compatible with PHP >= 5.3
Backwards Compatibility Breaking Changes
- The second argument of
JWT::decodenow must beFirebase\JWT\Keyorarray<string, Firebase\JWT\Key>(see #376)- The return type of
Firebase\JWT\JWK::parseKeyis nowFirebase\JWT\Key(see #392)- The return type of
Firebase\JWT\JWK::parseKeySetis nowarray<string, Firebase\JWT\Key>(see #376)- The "alg" parameter is required to be set for all JWKS parsed using
Firebase\JWT\JWK::parseKeySet(see #376)- The flag
JSON_UNESCAPED_SLASHESis now used for JSON decoding (see #376)- Constants
ASN1_INTEGER,ASN1_SEQUENCE, andASN1_BIT_STRINGhave been removed (see #376)JWT::encoderequires third argument$alg(see #377)JWT::signrequires third argument$alg(see #377)Using
Firebase\JWT\KeyUsing the
Keyobject inJWT::decodeAs a security fix, to avoid key type confusion (see #351), use of
Firebase\JWT\Keyis now required when decoding:use Firebase\JWT\JWT;// previous (v5.5.1 and below) $decoded = JWT::decode($jwt, $publicKey, 'RS256');
// new (v6.0.0) use Firebase\JWT\Key; $decoded = JWT::decode($jwt, new Key($publicKey, 'RS256'));
Using the
Keyobject inJWK::parseKeyandJWK::parseKeySetCalls to
JWK::parseKeyandJWK::parseKeySetnow return aKeyobject and an array ofKeyobjects respectively.use Firebase\JWT\JWK;// previous (v5.5.1 and below) $key = JWK::parseKey($jwk); // $key is a resource $keys = JWK::parseKeySet($jwks); // $keys is an associative array key ID to resources
// new (v6.0.0) $key = JWK::parseKey($jwk); // $key is a Key object $keys = JWK::parseKeySet($jwks); // $keys is an associative array of key ID to Key objects
If the keys in your JWKS do not contain the "alg", you need to set it manually to the expected algorithm, for it to be able to parse successfully:
</tr></table>
... (truncated)
Commits
0541cbafeat!: update return type for JWK methods (#392)8699eb9chore: update changelog for v6.0.0 (#391)edda0f9feat!: require Key object, use JSON_UNESCAPED_SLASHES, remove constants (#376)fbe6394chore(docs): fix typo in README262f84cchore: switch main to master (#383)12ec2fechore(docs): add throws DomainException for JWT::decode (#379)83b6090fix: phpdoc and exception (#371)cf81444chore: explicit third parameter to decode function in READMEbc0df64feat: add Key object to prevent key/algorithm type confusion (#365)804585fchore: add PHP 8.1 (#362)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.