fix: remove unnecessary error messages generated by JWT auth

This commit is contained in:
Ilya Averyanov 2022-06-27 18:42:44 +03:00
parent ae294cccb9
commit ddc06e8bcd
4 changed files with 15 additions and 15 deletions

View File

@ -7,6 +7,7 @@
### Bug fixes ### Bug fixes
- Clean trace zip files when file has been downloaded. - Clean trace zip files when file has been downloaded.
- Remove unnecessary error messages generated by JWT auth.
## v4.4.4 ## v4.4.4

View File

@ -1,6 +1,6 @@
{application, emqx_auth_jwt, {application, emqx_auth_jwt,
[{description, "EMQ X Authentication with JWT"}, [{description, "EMQ X Authentication with JWT"},
{vsn, "4.4.2"}, % strict semver, bump manually! {vsn, "4.4.3"}, % strict semver, bump manually!
{modules, []}, {modules, []},
{registered, [emqx_auth_jwt_sup]}, {registered, [emqx_auth_jwt_sup]},
{applications, [kernel,stdlib,jose]}, {applications, [kernel,stdlib,jose]},

View File

@ -1,16 +1,9 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
%% Unless you know what you are doing, DO NOT edit manually!! %% Unless you know what you are doing, DO NOT edit manually!!
{VSN, {VSN,
[ [{"4.4.2",[{load_module,emqx_auth_jwt,brutal_purge,soft_purge,[]}]},
{<<"4\\.4\\.[0-1]">>, [ {<<"4\\.4\\.[0-1]">>,[{restart_application,emqx_auth_jwt}]},
{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\\.[0-1]">>, [
{restart_application,emqx_auth_jwt}
]},
{<<".*">>, []}
]
}.

View File

@ -72,7 +72,13 @@ check_acl(ClientInfo = #{jwt_claims := Claims},
_ -> _ ->
?DEBUG("no_acl_jwt_claim", []), ?DEBUG("no_acl_jwt_claim", []),
ignore ignore
end. end;
check_acl(_ClientInfo,
_PubSub,
_Topic,
_NoMatchAction,
_AclEnv) ->
ignore.
is_expired(Exp) when is_binary(Exp) -> is_expired(Exp) when is_binary(Exp) ->
ExpInt = binary_to_integer(Exp), ExpInt = binary_to_integer(Exp),