Issue with authorization and subscription #2188
Unanswered
ZeferinoEAS
asked this question in
Q&A
Replies: 1 comment
-
Can anybody add in MQTTnet.Server.Internal.MqttClientSubscriptionsManager.FilterRetainedApplicationMessages the call of InterceptingClientEnqueueAsync? I'm not sure if the is the right place. But I think that will resolve this problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My team is working with MQTTnet version 5.0.1.1416. We are trying to filter what messages certain users receive based on our internal permissions. This is working fine with InterceptingClientEnqueueAsync event for any messages sent by the server to the users, but when working with messages with Retain as true, a user connecting and subscribing to a topic he doesn't have permissions to receive from, will receive all those messages, since the messages coming from a subscribe will not go through this event. I know there is a way to filter what the user can subscribe to, but this is impractical for us since we use wildcards to receive everything below a certain topic. Changing to not use wildcards will scale the amount of work to enormous proportions. Is there a way we can intercept these retain messages being received from subscriptions?
Beta Was this translation helpful? Give feedback.
All reactions