From 33521e30ff8e11458ecb88316d91296122b3c0a0 Mon Sep 17 00:00:00 2001 From: Mika Tuupola Date: Sat, 26 Jan 2019 08:31:10 +0200 Subject: [PATCH] Prepare for 3.2.0 --- CHANGELOG.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f51e5b..2443d44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,32 @@ All notable changes to this project will be documented in this file, in reverse chronological order by release. +## [3.2.0](https://github.com/tuupola/slim-jwt-auth/compare/3.1.1...3.2.0) - 2019-01-26 + +### Fixed +- Ignore rules were ignored if path was not given in settings ([#118](https://github.com/tuupola/slim-jwt-auth/issues/118), [#120](https://github.com/tuupola/slim-jwt-auth/pull/120)). + +### Added +- Support for multiple secret keys. If an array of secret keys is given, middleware will choose the key based on `kid` claim in the token header. + ```php + $middleware = new JwtAuthentication([ + "secret" => [ + "acme" =>"supersecretkeyyoushouldnotcommittogithub", + "beta" =>"anothersecretkeyfornevertocommittogithub" + ] + ]); + ``` + ```json + { + "typ": "JWT", + "alg": "HS256", + "kid": "acme" + } + ``` + ## [3.1.1](https://github.com/tuupola/slim-jwt-auth/compare/3.1.0...3.1.1) - 2018-10-12 ### Added -- Support for tuupola/callable-handler:^1.0 and tuupola/http-factory:^1.0 +- Support for `tuupola/callable-handler:^1.0` and `tuupola/http-factory:^1.0`. ## [3.1.0](https://github.com/tuupola/slim-jwt-auth/compare/3.0.0...3.1.0) - 2018-08-07 ### Added