Parcourir la source

chore(authn): add jose dep

zhouzb il y a 4 ans
Parent
commit
ddda18bcb8

+ 3 - 1
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,

+ 1 - 1
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"]},

+ 0 - 4
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];

+ 0 - 1
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"}}},