From ddda18bcb8d8769ae4a4458150daf97fb849e1a7 Mon Sep 17 00:00:00 2001 From: zhouzb Date: Thu, 15 Jul 2021 17:14:35 +0800 Subject: [PATCH] chore(authn): add jose dep --- apps/emqx_authn/rebar.config | 4 +++- apps/emqx_authn/src/emqx_authn.app.src | 2 +- apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl | 4 ---- apps/emqx_connector/rebar.config | 1 - 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/emqx_authn/rebar.config b/apps/emqx_authn/rebar.config index 73696b033..32b5a43e0 100644 --- a/apps/emqx_authn/rebar.config +++ b/apps/emqx_authn/rebar.config @@ -1,4 +1,6 @@ -{deps, []}. +{deps, [ + {jose, {git, "https://github.com/potatosalad/erlang-jose", {tag, "1.11.1"}}} +]}. {edoc_opts, [{preprocess, true}]}. {erl_opts, [warn_unused_vars, diff --git a/apps/emqx_authn/src/emqx_authn.app.src b/apps/emqx_authn/src/emqx_authn.app.src index 208e27b85..3b89d2a99 100644 --- a/apps/emqx_authn/src/emqx_authn.app.src +++ b/apps/emqx_authn/src/emqx_authn.app.src @@ -3,7 +3,7 @@ {vsn, "0.1.0"}, {modules, []}, {registered, [emqx_authn_sup, emqx_authn_registry]}, - {applications, [kernel,stdlib,emqx_resource,ehttpc,epgsql,mysql]}, + {applications, [kernel,stdlib,emqx_resource,ehttpc,epgsql,mysql,jose]}, {mod, {emqx_authn_app,[]}}, {env, []}, {licenses, ["Apache-2.0"]}, diff --git a/apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl b/apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl index 72bbd560a..437dac72d 100644 --- a/apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl +++ b/apps/emqx_authn/src/simple_authn/emqx_authn_jwt.erl @@ -102,10 +102,6 @@ certificate(_) -> undefined. endpoint(type) -> string(); endpoint(_) -> undefined. -% ssl_opts(type) -> hoconsc:t(hoconsc:ref(ssl_opts)); -% ssl_opts(default) -> []; -% ssl_opts(_) -> undefined. - refresh_interval(type) -> integer(); refresh_interval(default) -> 300; refresh_interval(validator) -> [fun(I) -> I > 0 end]; diff --git a/apps/emqx_connector/rebar.config b/apps/emqx_connector/rebar.config index 9bfbb9277..cbeff37eb 100644 --- a/apps/emqx_connector/rebar.config +++ b/apps/emqx_connector/rebar.config @@ -4,7 +4,6 @@ ]}. {deps, [ - {jose, {git, "https://github.com/potatosalad/erlang-jose", {tag, "1.11.1"}}}, {eldap2, {git, "https://github.com/emqx/eldap2", {tag, "v0.2.2"}}}, {mysql, {git, "https://github.com/emqx/mysql-otp", {tag, "1.7.1"}}}, {epgsql, {git, "https://github.com/epgsql/epgsql", {tag, "4.4.0"}}},