Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote auth url is not being called when using HTTP PUBLISH API #5

Closed
baskar007 opened this issue Oct 12, 2016 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@baskar007
Copy link

Hi,

When emqttd_auth_http plugin loaded, Using of HTTP PUBLISH API always return 401. and as far as I know, it seems like remote auth url is not being called when using HTTP PUBLISH API.

my "emqttd_auth_http.conf" looks like below :

%% Variables: %u = username, %c = clientid, %a = ipaddress, %t = topic

{super_req, [
  {method, post},
  {url, "http://MYDOMAIN.COM:80/mqtt/superuser"},
  {params, [
    {username, "%u"},
    {clientid, "%c"}
  ]}
]}.

{auth_req, [
  {method, post},
  {url, "http://MYDOMAIN.COM:80/mqtt/auth"},
  {params, [
    {clientid, "%c"},
    {username, "%u"},
    {password, "%P"}
  ]}
]}.

%% 'access' parameter: sub = 1, pub = 2

{acl_req, [
  {method, post},
  {url, "http://MYDOMAIN.COM:80/mqtt/acl"},
  {params, [
    {access,   "%A"},
    {username, "%u"},
    {clientid, "%c"},
    {ipaddr,   "%a"},
    {topic,    "%t"}
  ]}
]}.


@emqplus emqplus added the bug label Oct 31, 2016
@emqplus emqplus added this to the 2.0 milestone Oct 31, 2016
@emqplus
Copy link
Contributor

emqplus commented Nov 29, 2016

Fixed in 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants