Update dependency rbdwllr/reallysimplejwt to v5 #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.0
->^5.0
Release Notes
RobDWaller/ReallySimpleJWT (rbdwllr/reallysimplejwt)
v5.0.0
: ReleaseCompare Source
This release upgrades the ReallySimpleJWT library to work with PHP 8 and above. It also makes some significant design tweaks to the underlying codebase which should empower further improvements and functionality. The core interfaces for the library remain unchanged which should minimise the impact of the release.
The main design changes are the removal of the Secret class and interface, secret validation is now handled in the relevant encoding class. Token structure validation is now enforced in the Jwt value object class and not the Validator class. The Validate class now depends on the Parsed class, not the Parse class. This simplifies the Parse class and means token claim data access is only in one place.
Additional Work:
To Do:
sed
command implementation in the CI pipeline.user_id
andsub
claims.Notes:
v4.0.3
: Not Before Validation FixCompare Source
This release fixes a bug with the way the package validates Not Before claims in tokens. The Not Before claim defines when a token is usable from, it should have validated when the nbf claim matched the current time, but it didn't. This has been resolved.
See issue #69 for further details.
Additional Work:
v4.0.2
: Validate Algorithm Not NoneCompare Source
This security patch adds a check to the
Tokens::validate()
method to ensure the algorithm provided is not set to none as this may result in token misuse.Additional Work:
v4.0.1
: Documentation and CI FixesCompare Source
This release makes some documentation improvements to the README based on issue #63 to make validation method usage clearer in the Token class.
Additional Work:
v4.0.0
: ReleaseCompare Source
Version 4.0.0 of ReallySimpleJWT is a significant release as it makes numerous interface changes to improve the composability of the package. It also upgrades PHP support from version 7.2 and above to version 7.4 and above.
The core
Token
class interface mainly remains unaffected by this release, but a lot of what sits behind it has changed. TheToken
class is now just a static interface wrapper around the newTokens
class. This enables developers to instantiate and inject the core ReallySimpleJWT functionality if they chose too.In addition, the validation functionality which existed in the
Parse
class has been abstracted away and now just exists in theValidate
andHelper\Validator
classes. Also a number of interfaces for encoding, decoding and validation have been created, this increases composability and allows developers to amend functionality to meet their needs.Additional Work:
To Do:
v3.1.2
: Validate Algorithm Not NoneCompare Source
This security patch adds a check to the
Parse::validate()
method to ensure the algorithm provided is not set to none as this may result in token misuse.Additional Work:
v3.1.1
: Validate Algorithm Security FixCompare Source
none
has been removed as a default from the validate algorithm method. This is because it could lead to a security vulnerability in a small number of instances. This functionality will be improved in version 4.0.0.v3.1.0
: Validate AlgorithmCompare Source
The main purpose of this release is to provide a means to validate the algorithm, or
alg
claim, of the supplied token. As such avalidateAlgorithm()
method has been added to the Parse class to enable this functionality. This allows for better compliance with RFC 7519.This release also moves the CI pipeline from Travis CI to GitHub Actions. This wasn't planned but Travis seems to be experiencing a lot of problems lately so the decision was taken to move over now.
Additional Work:
To Do:
v3.0.3
: Audience Validation PatchCompare Source
This release patches an issue where the two audience validation checks both return the same exception code but different messages. The
Audience claim is not set.
exception now returns the code 11 instead of 2. The README documentation has been updated to match and surface this change.v3.0.2
: Remove Unnecessary Exception CodeCompare Source
Very small change which removes some unnecessary code bloat from the ValidateException class. Also adds a small addition to the CI pipeline to validate the Composer config.
v3.0.1
: PHPUnit Bug FixCompare Source
This patch release resolves a bug in the PHPUnit config. This did not effect how the library functions but did break the CI mutation tests.
Also this version adds some documentation amendments to the README to reflect changes made to the JavaScript library rs-jwt.
v3.0.0
: Version 3.0 ReleaseCompare Source
This is a breaking release which makes changes to the way token encoding / decoding works. Specifically abstracting the signature secret validation into a separate class and interface. This is so it is easier to implement custom signature secret validation. The release also bumps the minimum supported version of PHP to 7.2.
The other functional improvement is to add validate audience functionality to the parse and validate classes.
Full list of changes:
Future planned improvements:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.