diff --git a/CHANGELOG.md b/CHANGELOG.md index 5746a48..2d17a3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## 1.0.0 - 2019-10-02 +## 0.1.0 - 2019-10-04 + ### 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. diff --git a/composer.json b/composer.json index b931e72..50f591d 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "edenspiekermann/craft-jwt", "description": "Enable authentication to Craft through the use of JSON Web Tokens (JWT)", "type": "craft-plugin", - "version": "1.0.0", + "version": "0.1.0", "keywords": [ "craft", "cms", @@ -11,13 +11,17 @@ "craft jwt" ], "support": { - "docs": "https://edenspiekermann.com", - "issues": "https://edenspiekermann.com" + "docs": "https://github.com/edenspiekermann/craft-jwt", + "issues": "https://github.com/edenspiekermann/craft-jwt/issues" }, "license": "MIT", "authors": [ { "name": "Mike Pierce", + "homepage": "https://michaelpierce.trade" + }, + { + "name": "Edenspiekermann", "homepage": "https://edenspiekermann.com" } ], diff --git a/composer.lock b/composer.lock index 9406087..a29b6dc 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "dcf0c85fe129b1d2100517f4cde83472", + "content-hash": "3132bbedd982a541d8aaf35abb5efad1", "packages": [ { "name": "cebe/markdown", diff --git a/src/CraftJwt.php b/src/CraftJwt.php index f3246b0..008389c 100644 --- a/src/CraftJwt.php +++ b/src/CraftJwt.php @@ -29,7 +29,7 @@ * * @author Mike Pierce * @package CraftJwt - * @since 1.0.0 + * @since 0.1.0 * * @property JWTService $jWT */ @@ -49,7 +49,7 @@ class CraftJwt extends Plugin /** * @var string */ - public $schemaVersion = '1.0.0'; + public $schemaVersion = '0.1.0'; // Public Methods // ========================================================================= diff --git a/src/assetbundles/craftjwt/CraftJwtAsset.php b/src/assetbundles/craftjwt/CraftJwtAsset.php index cbcb52b..8cea8ea 100644 --- a/src/assetbundles/craftjwt/CraftJwtAsset.php +++ b/src/assetbundles/craftjwt/CraftJwtAsset.php @@ -18,7 +18,7 @@ /** * @author Mike Pierce * @package CraftJwt - * @since 1.0.0 + * @since 0.1.0 */ class CraftJwtAsset extends AssetBundle { diff --git a/src/assetbundles/craftjwt/dist/css/CraftJwt.css b/src/assetbundles/craftjwt/dist/css/CraftJwt.css index a647990..0421a78 100644 --- a/src/assetbundles/craftjwt/dist/css/CraftJwt.css +++ b/src/assetbundles/craftjwt/dist/css/CraftJwt.css @@ -7,5 +7,5 @@ * @copyright Copyright (c) 2019 Mike Pierce * @link https://edenspiekermann.com * @package CraftJwt - * @since 1.0.0 + * @since 0.1.0 */ diff --git a/src/assetbundles/craftjwt/dist/js/CraftJwt.js b/src/assetbundles/craftjwt/dist/js/CraftJwt.js index 673bfbd..7d706ac 100644 --- a/src/assetbundles/craftjwt/dist/js/CraftJwt.js +++ b/src/assetbundles/craftjwt/dist/js/CraftJwt.js @@ -7,5 +7,5 @@ * @copyright Copyright (c) 2019 Mike Pierce * @link https://edenspiekermann.com * @package CraftJwt - * @since 1.0.0 + * @since 0.1.0 */ diff --git a/src/controllers/JWTController.php b/src/controllers/JWTController.php index 224e5fd..a5d2ec2 100644 --- a/src/controllers/JWTController.php +++ b/src/controllers/JWTController.php @@ -19,7 +19,7 @@ /** * @author Mike Pierce * @package CraftJwt - * @since 1.0.0 + * @since 0.1.0 */ class JWTController extends Controller { diff --git a/src/models/Settings.php b/src/models/Settings.php index fc1e921..525ae6c 100644 --- a/src/models/Settings.php +++ b/src/models/Settings.php @@ -19,7 +19,7 @@ /** * @author Mike Pierce * @package CraftJwt - * @since 1.0.0 + * @since 0.1.0 */ class Settings extends Model { diff --git a/src/services/JWT.php b/src/services/JWT.php index 27d5da0..a4d5217 100644 --- a/src/services/JWT.php +++ b/src/services/JWT.php @@ -18,7 +18,7 @@ /** * @author Mike Pierce * @package CraftJwt - * @since 1.0.0 + * @since 0.1.0 */ class JWT extends Component { diff --git a/src/templates/settings.twig b/src/templates/settings.twig index 38443af..e960e9f 100644 --- a/src/templates/settings.twig +++ b/src/templates/settings.twig @@ -9,7 +9,7 @@ * @copyright Copyright (c) 2019 Mike Pierce * @link https://edenspiekermann.com * @package CraftJwt - * @since 1.0.0 + * @since 0.1.0 */ #} diff --git a/src/translations/en/craft-jwt.php b/src/translations/en/craft-jwt.php index bb9dad8..d841692 100644 --- a/src/translations/en/craft-jwt.php +++ b/src/translations/en/craft-jwt.php @@ -12,7 +12,7 @@ /** * @author Mike Pierce * @package CraftJwt - * @since 1.0.0 + * @since 0.1.0 */ return [ 'Craft JWT plugin loaded' => 'Craft JWT plugin loaded',