Merge pull request #13208 from SergeTupchiy/PATCH-EEC-1039-e5.6.0-jwks-user-agent
PATCH fix(emqx_authn_jwks) add a user-agent header to jwks HTTP request
This commit is contained in:
commit
1863731ecb
|
@ -35,4 +35,4 @@
|
|||
-define(EMQX_RELEASE_CE, "5.6.1").
|
||||
|
||||
%% Enterprise edition
|
||||
-define(EMQX_RELEASE_EE, "5.6.1").
|
||||
-define(EMQX_RELEASE_EE, "5.6.1-patch.2").
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{application, emqx, [
|
||||
{id, "emqx"},
|
||||
{description, "EMQX Core"},
|
||||
{vsn, "5.2.1"},
|
||||
{vsn, "5.2.2"},
|
||||
{modules, []},
|
||||
{registered, []},
|
||||
{applications, [
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
%% -*- mode: erlang -*-
|
||||
{application, emqx_auth_jwt, [
|
||||
{description, "EMQX JWT Authentication and Authorization"},
|
||||
{vsn, "0.2.0"},
|
||||
{vsn, "0.2.1"},
|
||||
{registered, []},
|
||||
{mod, {emqx_auth_jwt_app, []}},
|
||||
{applications, [
|
||||
|
|
|
@ -159,7 +159,10 @@ refresh_jwks(
|
|||
case
|
||||
httpc:request(
|
||||
get,
|
||||
{Endpoint, [{"Accept", "application/json"}]},
|
||||
{Endpoint, [
|
||||
{"Accept", "application/json"},
|
||||
{"User-Agent", "EMQX/" ++ emqx_release:version_with_prefix()}
|
||||
]},
|
||||
HTTPOpts,
|
||||
[{body_format, binary}, {sync, false}, {receiver, self()}]
|
||||
)
|
||||
|
|
3
mix.exs
3
mix.exs
|
@ -100,7 +100,8 @@ defmodule EMQXUmbrella.MixProject do
|
|||
{:rfc3339, github: "emqx/rfc3339", tag: "0.2.3", override: true},
|
||||
{:bcrypt, github: "emqx/erlang-bcrypt", tag: "0.6.2", override: true},
|
||||
{:uuid, github: "okeuday/uuid", tag: "v2.0.6", override: true},
|
||||
{:quickrand, github: "okeuday/quickrand", tag: "v2.0.6", override: true}
|
||||
{:quickrand, github: "okeuday/quickrand", tag: "v2.0.6", override: true},
|
||||
{:mimerl, "1.2.0", override: true}
|
||||
] ++
|
||||
emqx_apps(profile_info, version) ++
|
||||
enterprise_deps(profile_info) ++ jq_dep() ++ quicer_dep()
|
||||
|
|
Loading…
Reference in New Issue