Comments (17)
@jbpin Can you provide a default username
for all the MQTT clients? Then this plugin will call the Auth API with clientid
, username
and password
fields.
from emqx-auth-http.
@emqplus Thanks for the reply.
Username only is not sufficient. I have to pass a username and password in order to the call to the http service occur. After adding a default username and password (not valid as I want to validate clientid only) everything work fine. So not having to pass username and password will be a enhancement.
from emqx-auth-http.
This is from the log
09:09:12.697 [error] Client([email protected]:55476): Username 'necessary' login failed for 400
from emqx-auth-http.
@jbpin Check your auth API auth.http.auth_req = http://127.0.0.1:8080/mqtt/auth
, which returned the 400
error code.
from emqx-auth-http.
Sorry that the line I mention in the initial comment when I submit with no username and no password.
09:21:40.497 [error] Client([email protected]:55613): Username 'undefined' login failed for username_or_password_undefined
09:23:30.735 [error] Client([email protected]:55617): Username 'necessary' login failed for username_or_password_undefined
The first call was made with no username but password, the second with username (necessary) but no password. Both connect request didn't call my http service due to the fact that no username or no password was submit. When I put the both parameters all is fine.
from emqx-auth-http.
Any update on the issue?
from emqx-auth-http.
If the emq-auth-http plugin is disabled a client is able to connect with a clientID only. But if I enable this plugin the client can't connect with empty username and password anymore. HTTP request to the auth endpoint is not even sending. And that's strange.
Why does emqtt block the connection by itself? It's all up to my auth endpoint to determine which credentials are sufficient. Just send me empty username and password.
from emqx-auth-http.
the option is actually a must. i encounter a situation that a mobile-app emq client should be upgraded from anonymous auth to http auth , but some user would be still using the old version of the mobile-app, and the old version do not hava username/password, so they can not connect to the http-auth enabled emq server
from emqx-auth-http.
in my opinion, the emq server should not participate in the decision of auth result, since the auth logic is delegated to a external dedicated auth server.
from emqx-auth-http.
We will support it in version 3.2.
from emqx-auth-http.
We will support it in version 3.2.
when release version 3.2 ?
from emqx-auth-http.
The stable version maybe a month later! Because we will Enhance many features of EMQ X
from emqx-auth-http.
hello, I'm also concerned about this, when will the version 3.2 be released?
from emqx-auth-http.
This should be imprtant for working with oauth2
from emqx-auth-http.
We are working for 3.2.0, it could take another two weeks
from emqx-auth-http.
Thank you for your participation, I will close this issue.
from emqx-auth-http.
Hello @turtleDeng can I get some documentations on this? It's closed but we don't have enough information on how should we use it.
from emqx-auth-http.
Related Issues (20)
- Disable ACL or Auth using docker HOT 3
- Enable passthrough of ws_cookie in acl request HOT 3
- default port 80/443 can't be ignored for version4.2.4 HOT 1
- {emqx_auth_http,{different_server,{emqx_auth_http_app,start,[normal,[]]}}} why? HOT 2
- TLS subject is always 'undefined' HOT 1
- meaning of the %r parameter HOT 1
- Cannot enable only ACL HOT 2
- EMQX HTTP Auth not working with Azure Functions HOT 2
- server_unavaliable error HOT 12
- Combine auth request with ACL for improved performance
- Client password printed in logs in plaintext HOT 1
- GET and POST method simultaneously in auth_http config file
- Problem with Kubernetes-Cluster internal service URLs authentication HOT 1
- Out-dated documentation HOT 1
- Unable to use the plugin when upgrading from 4.2.3 to 4.2.4 HOT 2
- http auth acl custom header
- EMQX HTTP not connecting to service (solved, docs need to be more firm) HOT 1
- Which ip did ipaddr get? HOT 3
- Auth and ACL Auth Api timeouts HOT 1
- Dynamic routing for mutualize broker HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emqx-auth-http.