emqx / emqx-auth-http

EMQX HTTP Authentication/ACL Plugin
https://emqx.io/
Apache License 2.0
43 stars 47 forks source link

EMQX HTTP Auth not working with Azure Functions #255

Closed nishant-vvdn closed 3 years ago

nishant-vvdn commented 3 years ago
  1. Working correctly with any other POST APIs.

  2. Not working with Azure Function which is returning 200 when triggered using Postman or cURL.

Error: 2021-03-15 13:14:42.294 [error] <<"sub_guy">>@10.2.0.114:39659 [Auth http] Deny connection from path: /api/authentication, response http code: 400 2021-03-15 13:14:42.294 [warning] <<"sub_guy">>@10.2.0.114:39659 [Channel] Client sub_guy (Username: 'abc') login failed for bad_username_or_password

HJianBo commented 3 years ago

This appears to be an HTTP 400 error returned by your service.

Can you capture the network traffic to see what emqx is sending and is it what you need?

nishant-vvdn commented 3 years ago

Yes, apparently EMQX is resolving DNS to IP Address of Azure Function and Azure Function does not allow use on IP Address but only on DNS.