Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Enabling anonymous pubsub subscriptions

$
0
0

Does anyone know of a way to enable anonymous pubsub subscritions (not presence subscriptions)?

 

I'm looking for maybe a setting or something to enable it.  I've looked through documentation a good bit and googled my eyes out, but all I find are forums posts asking the same thing.

 

I was able to dig into the Openfire source code a bit and found something interesting:

 

From:  https://geni-imf.renci.org/trac/browser/openfire/openfire/src/java/org/jivesoftw are/openfire/pubsub/PubSubEngine.java

483             private void subscribeNode(PubSubService service, IQ iq, Element childElement, Element subscribeElement)

...

527                 // Check if the subscriber is an anonymous user

528                 if (!UserManager.getInstance().isRegisteredUser(subscriberJID)) {

529                     // Anonymous users cannot subscribe to the node. Return forbidden error

530                     sendErrorPacket(iq, PacketError.Condition.forbidden, null);

531                     return;

532                 }

 

I'm not sure which version of Openfire this is from, but it seems like it's only allowing registered users subscribe to pubsub nodes.  Does anyone know if there's been an update that allows anonymous users to subscribe to pubsub nodes?

 

Any help is much apprciated.


Viewing all articles
Browse latest Browse all 10742

Trending Articles