From 0e879370f5d1d2c0437457eef0051e20f8423278 Mon Sep 17 00:00:00 2001 From: Andrei Nesterov Date: Fri, 14 Jun 2024 15:40:35 +0300 Subject: [PATCH] Allow ULMS service to create dynamic subscriptions --- src/mqttgw_http_subscription.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mqttgw_http_subscription.erl b/src/mqttgw_http_subscription.erl index 575d852..53d499f 100644 --- a/src/mqttgw_http_subscription.erl +++ b/src/mqttgw_http_subscription.erl @@ -81,6 +81,7 @@ check_authz(<<"Bearer ",Token/binary>>, {enabled, AuthnCfg}) -> case maps:find(label, AccountId) of {ok, <<"conference">>} -> {ok, AccountId}; {ok, <<"event">>} -> {ok, AccountId}; + {ok, <<"ulms">>} -> {ok, AccountId}; _ -> {error, #{reason_code => not_allowed}} end catch