[jdev] automatic presence authorization from predetermined domain
Kevin Smith
kevin at kismith.co.uk
Mon Oct 31 14:42:39 UTC 2011
On Mon, Oct 31, 2011 at 2:35 PM, Daniel Dormont
<dan at greywallsoftware.com> wrote:
> Hi all,
> I've been working with XMPP so far only in the context of MUC, and I'm just
> now making my first foray into "ordinary" messaging and presence. I'm
> running into a scenario where in my particular application, represented by a
> certain XMPP domain, I want to allow all my users to see each others'
> presence without authorization. I see that the "subscribe" mechanism exists
> - what I'd like to do is have that request approved automatically. I realize
> I could just engineer the client my users will be running on the receiving
> end (this is a web application, so I do control the client) to always
> respond in the affirmative, but I feel like it would be easier if I could
> set something on the server side, or even send some kind of packet when
> those users first log in, to indicate that presence subscriptions from that
> particular domain should always be accepted.
> On first read, XMPP doesn't appear to have any capability like this. Am I
> missing something, or is my best bet to just engineer the response like I
> described?
Two main solutions to this exist - they're implementation details of
the servers involved, rather than protocol-side. They're 1) To
auto-approve subscriptions when they're requested or 2) to use
prepopulated/shared roster groups, such that no approval is necessary
and everyone already has the people they need in their roster.
/K
More information about the JDev
mailing list