Git Product home page Git Product logo

Comments (17)

emqplus avatar emqplus commented on September 12, 2024

@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.

jbpin avatar jbpin commented on September 12, 2024

@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.

jbpin avatar jbpin commented on September 12, 2024

This is from the log

09:09:12.697 [error] Client([email protected]:55476): Username 'necessary' login failed for 400

from emqx-auth-http.

emqplus avatar emqplus commented on September 12, 2024

@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.

jbpin avatar jbpin commented on September 12, 2024

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.

sepulrator avatar sepulrator commented on September 12, 2024

Any update on the issue?

from emqx-auth-http.

chimit avatar chimit commented on September 12, 2024

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.

GerogeLeon avatar GerogeLeon commented on September 12, 2024

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.

GerogeLeon avatar GerogeLeon commented on September 12, 2024

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.

turtleDeng avatar turtleDeng commented on September 12, 2024

We will support it in version 3.2.

from emqx-auth-http.

GerogeLeon avatar GerogeLeon commented on September 12, 2024

We will support it in version 3.2.

when release version 3.2 ?

from emqx-auth-http.

HJianBo avatar HJianBo commented on September 12, 2024

The stable version maybe a month later! Because we will Enhance many features of EMQ X

from emqx-auth-http.

GopherJ avatar GopherJ commented on September 12, 2024

hello, I'm also concerned about this, when will the version 3.2 be released?

from emqx-auth-http.

GopherJ avatar GopherJ commented on September 12, 2024

This should be imprtant for working with oauth2

from emqx-auth-http.

HJianBo avatar HJianBo commented on September 12, 2024

We are working for 3.2.0, it could take another two weeks

from emqx-auth-http.

turtleDeng avatar turtleDeng commented on September 12, 2024

Thank you for your participation, I will close this issue.

from emqx-auth-http.

GopherJ avatar GopherJ commented on September 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.