Craft JWT Auth
Version 0.2.0
Added
JWT::getJWTFromRequest()
: Attempts to find a JWT in request headers and return it.JWT::parseAndVerifyJWT()
: Attempts to parse a JWT and verify that it is signed using the shared secret.JWT::parseJWT()
: Attempts to parse a JWT string.JWT::verifyJWT()
: Attempts to verify a JWT token with the shared secret key.JWT::getUserByJWT()
: Looks for a Craft user that matches the claimed email in the verified token.JWT::createUserByJWT()
: Creates a Craft user based on the claims found in the verified token.Roadmap to 1.0 in README
Changed
- Refactored authentication logic into service calls
Version 0.1.2
Added
- Additional instructions to the PR template
Removed
Deleted some unneeded asset files
Cleaned up various files of unneeded cruft
Version 0.1.1
Changed
- Changed the name of the package to edenspiekermann/craft-jwt-auth
Version 0.1.0
Added
Initial release
Validate incoming requests with a JWT present in the Authentication headers.
Match a validated JWT to a user account in Craft CMS and login as that user.
Optionally create a new account if no existing account can be found.