diff --git a/CHANGES-4.4.md b/CHANGES-4.4.md index cca548ae0..b2b331240 100644 --- a/CHANGES-4.4.md +++ b/CHANGES-4.4.md @@ -7,6 +7,7 @@ ### Bug fixes - Clean trace zip files when file has been downloaded. +- Remove unnecessary error messages generated by JWT auth. ## v4.4.4 diff --git a/apps/emqx_auth_jwt/src/emqx_auth_jwt.app.src b/apps/emqx_auth_jwt/src/emqx_auth_jwt.app.src index cc0029e0f..7e6361bef 100644 --- a/apps/emqx_auth_jwt/src/emqx_auth_jwt.app.src +++ b/apps/emqx_auth_jwt/src/emqx_auth_jwt.app.src @@ -1,6 +1,6 @@ {application, emqx_auth_jwt, [{description, "EMQ X Authentication with JWT"}, - {vsn, "4.4.2"}, % strict semver, bump manually! + {vsn, "4.4.3"}, % strict semver, bump manually! {modules, []}, {registered, [emqx_auth_jwt_sup]}, {applications, [kernel,stdlib,jose]}, diff --git a/apps/emqx_auth_jwt/src/emqx_auth_jwt.appup.src b/apps/emqx_auth_jwt/src/emqx_auth_jwt.appup.src index 34e964e65..d8b60f0a3 100644 --- a/apps/emqx_auth_jwt/src/emqx_auth_jwt.appup.src +++ b/apps/emqx_auth_jwt/src/emqx_auth_jwt.appup.src @@ -1,16 +1,9 @@ %% -*- mode: erlang -*- %% Unless you know what you are doing, DO NOT edit manually!! {VSN, - [ - {<<"4\\.4\\.[0-1]">>, [ - {restart_application,emqx_auth_jwt} - ]}, - {<<".*">>, []} - ], - [ - {<<"4\\.4\\.[0-1]">>, [ - {restart_application,emqx_auth_jwt} - ]}, - {<<".*">>, []} - ] -}. + [{"4.4.2",[{load_module,emqx_auth_jwt,brutal_purge,soft_purge,[]}]}, + {<<"4\\.4\\.[0-1]">>,[{restart_application,emqx_auth_jwt}]}, + {<<".*">>,[]}], + [{"4.4.2",[{load_module,emqx_auth_jwt,brutal_purge,soft_purge,[]}]}, + {<<"4\\.4\\.[0-1]">>,[{restart_application,emqx_auth_jwt}]}, + {<<".*">>,[]}]}. diff --git a/apps/emqx_auth_jwt/src/emqx_auth_jwt.erl b/apps/emqx_auth_jwt/src/emqx_auth_jwt.erl index 040f9b629..725207d9a 100644 --- a/apps/emqx_auth_jwt/src/emqx_auth_jwt.erl +++ b/apps/emqx_auth_jwt/src/emqx_auth_jwt.erl @@ -72,7 +72,13 @@ check_acl(ClientInfo = #{jwt_claims := Claims}, _ -> ?DEBUG("no_acl_jwt_claim", []), ignore - end. + end; +check_acl(_ClientInfo, + _PubSub, + _Topic, + _NoMatchAction, + _AclEnv) -> + ignore. is_expired(Exp) when is_binary(Exp) -> ExpInt = binary_to_integer(Exp),