v2.0.0-beta
Pre-release
Pre-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 tocreate
. - The
parseToken
method has been renamed toparse
. - The
validateJWT
method has been renamed tovalidate
. - Removed the
createToken
method. - The
validate
method returns anValidatedJsonWebToken
object, not a boolean. - The
LittleApps\LittleJWT\JWT\JWT
class has been renamed toJsonWebToken
. - The
LittleApps\LittleJWT\JWK\JsonWebKey
class extendsJose\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