Code Monkey home page Code Monkey logo

Comments (9)

maggu2810 avatar maggu2810 commented on July 27, 2024

Are there any plans to support this?

from moquette.

andsel avatar andsel commented on July 27, 2024

Yes, it's on the stack of todos. Before I've to introduce the concept of plugins.

from moquette.

andsel avatar andsel commented on July 27, 2024

Implemented ACL with same synthax used in Mosquitto.

from moquette.

WilliamKinaan avatar WilliamKinaan commented on July 27, 2024

Hey Adnsel, I am having a problem with the access control list in Moquttee, It seems that it is working so strange, I have posted a question on stack overflow, here it is http://stackoverflow.com/questions/31511811/moquette-users-have-privilege-different-than-what-is-written-in-the-access-contr
could you check please

from moquette.

andsel avatar andsel commented on July 27, 2024

Hi William,
I've seen it, I'll check it on the first free slot during night development.

Andrea

On Mon, Jul 20, 2015 at 10:28 AM, William Kinaan [email protected]
wrote:

Hey Adnsel, I am having a problem with the access control list in
Moquttee, It seems that it is working so strange, I have posted a question
on stack overflow, here it is
http://stackoverflow.com/questions/31511811/moquette-users-have-privilege-different-than-what-is-written-in-the-access-contr
could you check please


Reply to this email directly or view it on GitHub
https://github.com/andsel/moquette/issues/10#issuecomment-122812085.

from moquette.

andsel avatar andsel commented on July 27, 2024

Answered, probably you refer or touch the bad file, If you can't fix please refer to mailining list or github issues, posting your moquette.conf, acl.conf and password.conf

Andrea

from moquette.

WilliamKinaan avatar WilliamKinaan commented on July 27, 2024

Hi Andsel,
I highly doubt that there is a bug in the authorization part of my version, because look at the code for receiving a subscribe event

@MQTTMessage(message = SubscribeMessage.class)
void processSubscribe(ServerChannel session, SubscribeMessage msg) {
String clientID = (String) session
.getAttribute(NettyChannel.ATTR_KEY_CLIENTID);
boolean cleanSession = (Boolean) session
.getAttribute(NettyChannel.ATTR_KEY_CLEANSESSION);
LOG.debug("SUBSCRIBE client <{}> packetID {}", clientID,
msg.getMessageID());

    // ack the client
    SubAckMessage ackMessage = new SubAckMessage();
    ackMessage.setMessageID(msg.getMessageID());

    for (SubscribeMessage.Couple req : msg.subscriptions()) {
        AbstractMessage.QOSType qos = AbstractMessage.QOSType.values()[req
                .getQos()];
        Subscription newSubscription = new Subscription(clientID,
                req.getTopicFilter(), qos, cleanSession);
        boolean valid = subscribeSingleTopic(newSubscription,
                req.getTopicFilter());
        ackMessage.addType(valid ? qos : AbstractMessage.QOSType.FAILURE);
    }

There is no call for the can.read function.

That is the problem, I am even developing a plugin for authorization, and the authorization on publishing is working perfectly, but the authorization on subscription is not working.

May you check please?

Many thanks,

from moquette.

WilliamKinaan avatar WilliamKinaan commented on July 27, 2024

Hi man,

So sorry, it is working perfectly :)

And my plugin for authorization is working now

Appreciate it

from moquette.

andsel avatar andsel commented on July 27, 2024

Ok, great!

from moquette.

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.