Re: [Standards] registration policies in XEP-0309

2012-01-28 Thread Matthew Wild
On 24 January 2012 18:57, Peter Saint-Andre  wrote:
>

> There might be more elegant ways to do it, but this one seems acceptable
> to me. Feedback is welcome. :)

Seems just fine to me.

Regards,
Matthew


[Standards] registration policies in XEP-0309

2012-01-24 Thread Peter Saint-Andre
In XEP-0309, I have a vCard slot for a registration URI:


  https://register.jabber.org/


(Yes, it should be "uri", not "url".)

In essence I (as someone running a server directory) would like a way to
capture the server's registration policy in the "contact" vCard. This
helps those who use the directory information (e.g., clients) to do
things like show a drop-down menu of servers that allow an end user to
register in-band (note that support for jabber:iq:register does not
necessarily imply that the server allows in-band registration, since the
server might allow password changes but not registration).

Here's one possible way to do it:

1. If in-band registration is supported, include the XMPP URI of the
server itself:


  xmpp:example.com


2. If out-of-band registration is supported, include the appropriate URI
(typically HTTPS):


  https://register.example.org/


3. If no registration is supported (e.g., enterprise deployment), don't
include the  element.

There might be more elegant ways to do it, but this one seems acceptable
to me. Feedback is welcome. :)

Peter

-- 
Peter Saint-Andre
https://stpeter.im/