浏览代码

chore(authn): fix coap authn and update tag for esasl

zhouzb 4 年之前
父节点
当前提交
5ecc992944
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl
  2. 1 1
      rebar.config

+ 1 - 1
apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl

@@ -113,7 +113,7 @@ init({ClientId, Username, Password, Channel}) ->
                     password = Password},
                     password = Password},
     _ = run_hooks('client.connect', [conninfo(State0)], undefined),
     _ = run_hooks('client.connect', [conninfo(State0)], undefined),
     case emqx_access_control:authenticate(clientinfo(State0)) of
     case emqx_access_control:authenticate(clientinfo(State0)) of
-        {ok, _AuthResult} ->
+        ok ->
             ok = emqx_cm:discard_session(ClientId),
             ok = emqx_cm:discard_session(ClientId),
 
 
             _ = run_hooks('client.connack', [conninfo(State0), success], undefined),
             _ = run_hooks('client.connack', [conninfo(State0), success], undefined),

+ 1 - 1
rebar.config

@@ -63,7 +63,7 @@
     , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.13.0"}}}
     , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.13.0"}}}
     , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.9.6"}}}
     , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.9.6"}}}
     , {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.2.1"}}}
     , {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.2.1"}}}
-    , {esasl, {git, "https://github.com/emqx/esasl", {branch, "refactor/sasl"}}}
+    , {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.1.0"}}}
     ]}.
     ]}.
 
 
 {xref_ignores,
 {xref_ignores,