Skip to content

v2.0.0-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@little-apps little-apps released this 20 May 06:54
· 132 commits to main since this release

IMPORTANT: This is a beta release and therefore, is not recommended for production systems. If you discover a bug, have a concern, etc., please create an issue.

What's Changed

High Level

  • Major updates to functionality and design.
  • Implemented claim mutating (serializing and unserializing).
  • Various fixes and updates to both the code and documentation.
  • The LittleJWT documentation has been updated to reflect the changes.

Low Level

  • The createJWT method has been renamed to create.
  • The parseToken method has been renamed to parse.
  • The validateJWT method has been renamed to validate.
  • Removed the createToken method.
  • The validate method returns an ValidatedJsonWebToken object, not a boolean.
  • The LittleApps\LittleJWT\JWT\JWT class has been renamed to JsonWebToken.
  • The LittleApps\LittleJWT\JWK\JsonWebKey class extends Jose\Component\Core\JWK.
  • The createUnsigned method always creates an unsigned JWT.
  • The createSigned method always creates and signs a JWT.
  • The create method creates and signs a JWT depending if auto sign is enabled.
  • LittleJWT forwards calls to the mutate/non-mutate handler.
  • Creating, parsing, signing, validating, etc. are in separate traits.
  • Added option to enable/disable auto signing JWTs.

Full Changelog: v1.5.1...v2.0.0-beta