From 5ecc9929441bfdd0102c0cd79e68416c4bcbcdeb Mon Sep 17 00:00:00 2001 From: zhouzb Date: Thu, 15 Jul 2021 14:25:23 +0800 Subject: [PATCH] chore(authn): fix coap authn and update tag for esasl --- apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl | 2 +- rebar.config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl b/apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl index 315cfbb5c..a76dc904e 100644 --- a/apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl +++ b/apps/emqx_coap/src/emqx_coap_mqtt_adapter.erl @@ -113,7 +113,7 @@ init({ClientId, Username, Password, Channel}) -> password = Password}, _ = run_hooks('client.connect', [conninfo(State0)], undefined), case emqx_access_control:authenticate(clientinfo(State0)) of - {ok, _AuthResult} -> + ok -> ok = emqx_cm:discard_session(ClientId), _ = run_hooks('client.connack', [conninfo(State0), success], undefined), diff --git a/rebar.config b/rebar.config index 0c741e907..3bda59133 100644 --- a/rebar.config +++ b/rebar.config @@ -63,7 +63,7 @@ , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.13.0"}}} , {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"}}} - , {esasl, {git, "https://github.com/emqx/esasl", {branch, "refactor/sasl"}}} + , {esasl, {git, "https://github.com/emqx/esasl", {tag, "0.1.0"}}} ]}. {xref_ignores,