Merge pull request #8329 from savonarola/fix-log-errors
fix: remove unnecessary error messages generated by JWT auth
This commit is contained in:
commit
5f2fbe50c4
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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]},
|
||||||
|
|
|
@ -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}
|
|
||||||
]},
|
|
||||||
{<<".*">>, []}
|
|
||||||
]
|
|
||||||
}.
|
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue