Merge pull request #8329 from savonarola/fix-log-errors

fix: remove unnecessary error messages generated by JWT auth
This commit is contained in:
Ilya Averyanov 2022-06-27 20:08:54 +03:00 committed by GitHub
commit 5f2fbe50c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 15 deletions

View File

@ -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

View File

@ -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]},

View File

@ -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}]},
{<<".*">>,[]}]}.

View File

@ -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),