Skip to content
Discussion options

You must be logged in to vote

Hello, it is possible to pass to the Broker constructor an object of type Authorization, that defines the method fun authorize(clientId: String, topicName: String, isSubscription: Boolean): Boolean. There you can define an authorization policy, that method gets called on publish and on subscribe (isSubscription=true). There you have the clientId and the topicName.

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@thiagonuic
Comment options

@thiagonuic
Comment options

@davidepianca98
Comment options

@davidepianca98
Comment options

@thiagonuic
Comment options

Answer selected by thiagonuic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants