Skip to content

Releases: RobDWaller/psr-jwt

Handlers Update

03 Sep 05:35
5380437
Compare
Choose a tag to compare

This is a significant and breaking release which paves the way for the version 1.x release in the next few months.

The release includes the addition of a JSON response handler along with breaking changes to filenames so the code language is clearer. For instance, the Auth handler becomes the Html handler because it returns a text/html response, and the JwtAuth factory becomes the JwtMiddleware factory because it returns middleware.

Also significant updates have been made to the README documentation so usage is clearer, along with the addition of some more badges 😉.

Release One!

27 Jun 12:02
f06f774
Compare
Choose a tag to compare

This is the first release of PSR-JWT, a JSON Web Token middleware library for PSR-7 and PSR-15 compliant frameworks.

It allows you to add JWT creation and validation functionality to your project with just a few lines of code. It is fully tested with 100% code coverage and an Mutation Score Indicator of 96.

Things still to do:

  • Add JSON auth handler.
  • Extend documentation with advanced usage examples.

First Release Candidate

28 May 10:20
10f8c9b
Compare
Choose a tag to compare
Pre-release

The PSR-JWT library is now, excluding minor amendments, in its releasable form, which will happen two weeks after the date of this release.

Changes since beta release:

  • The authentication flow has been changed to use handlers, this is so developers can customise the response which is returned if authentication fails.
  • Unit tests have been updated and extended to handle the above changes.
  • PHP Loc and PHP Copy Paste have been added to the Travis pipeline.
  • The README documentation has been tidied up and extended ready for release.

Beta Release

15 May 14:20
d0a7ee3
Compare
Choose a tag to compare
Beta Release Pre-release
Pre-release

The library now 'works' and fulfills the task of validating JSON Web Tokens in a PSR compliant manner.

Changes since Alpha release:

  • Added Infection PHP mutation tests.
  • Improved tests based on Infection PHP Feedback.
  • Added comments to code.
  • Removed unnecessary getters.

Things to do:

  • Fix issue with secret and token key order in middleware class.
  • Add custom handler to middleware to allow for custom response definition.
  • Add more documentation to readme.
  • Check code comments are correct and make sense.

Alpha Refactor

02 May 12:01
d02e4d1
Compare
Choose a tag to compare
Alpha Refactor Pre-release
Pre-release

Major refactor since last alpha release based on better understanding of PSR-15.

Updates include:

  • Better namespacing.
  • Removal of duplication in Middleware and Invokable classes.
  • Only one entry point via JwtAuthMiddleware class.
  • Removal of handler class, this is not needed.
  • Increased test coverage to 100%.
  • Added usable ReadMe documentation.
  • Completed initial testing with Slim PHP v3 and Zend Expressive.

Things to do before Beta release:

  • Add more tests to confirm various scenarios.
  • Further testing required with Slim and Zend.
  • Add comments to code.
  • Enhance ReadMe documentation.

First Alpha Release

17 Apr 10:52
Compare
Choose a tag to compare
First Alpha Release Pre-release
Pre-release

This is the 0.1.0 alpha release of the Psr-Jwt library, a PSR-7 / 15 compliant middleware library for handling and authorising JSON Web Token requests in PHP.

The library is a wrapper for the JSON Web Token Library ReallySimpleJWT.

It is in alpha so should not be used in a production environment and a lot of work still needs to be done to get it production ready.

Work to be done:

  • Increase code coverage to 100%+.
  • Enhance Readme documentation.
  • Add comments to code.
  • Confirm structure of files and naming convention.
  • Further integration tests to be carried out with Slim PHP.
  • Start integration tests with Zend Expressive framework.