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

Feature request: HTTP Authentication #541

Closed
dreson4 opened this issue May 5, 2016 · 5 comments
Closed

Feature request: HTTP Authentication #541

dreson4 opened this issue May 5, 2016 · 5 comments
Assignees
Milestone

Comments

@dreson4
Copy link

dreson4 commented May 5, 2016

Requesting to have an authentication feature where someone can authenticate via HTTP POST requests, emqttd would make a request to the given http routes e.g /superuser, /acl, /userauth and on response code 200 the server would allow the client, or deny the client upon receiving other status codes e.g. 403.
This way anyone can implement their own authentication mechanisms e.g use of webtokens e.t.c through any language they prefer as a server running either locally or even on a different machine.

@emqplus emqplus added this to the 1.1 milestone May 5, 2016
@emqplus emqplus self-assigned this May 5, 2016
@s4nch3z
Copy link

s4nch3z commented May 12, 2016

+1

@emqplus
Copy link
Contributor

emqplus commented May 31, 2016

@dreson4, @s4nch3z. The HTTP authentication plugin has been released: https://github.com/emqtt/emqttd_auth_http.

@emqplus emqplus closed this as completed May 31, 2016
@s4nch3z
Copy link

s4nch3z commented May 31, 2016

@emqplus Big Thanks!

@teifip
Copy link

teifip commented Jun 1, 2016

Thanks for the new plugin! I'm lost on one point. How do I control whether the authentication request is for a superuser or a normal user? I'm connecting with a Node.js MQTT client, and I see that the first authentication attempt is a super_req, followed by an auth_req in case the super_req fails.

@emqplus
Copy link
Contributor

emqplus commented Jun 1, 2016

@teifip, The 'super_req' could be commented.

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

No branches or pull requests

4 participants