Re: Help on XMPP/Jabber Origin for STUN/TURN
Alan Johnston <[email protected]> Fri, 1 Aug 2014 11:43:04 -0500
| Newsgroups | gmane.ietf.xmpp |
|---|---|
| Message-ID | <CAKhHsXFTEhcZuZMi6HgzLD7bjb6mCt_6GfRbBT9bGKYzW4ySUQ@mail.gmail.com> |
Dave, Thanks for the feedback. There are two main use cases for the extension in multi-domain STUN/TURN servers. One is for logging, and the other is for realm selection. For the former, the server doesn't need to parse it, just log in. For the other case, the server just needs to extract a domain name that can hopefully be mapped to a realm. The goal here is to make things simple on the client and have the client just include something that it already knows in a known format. This why an HTTP origin and SIP registrar URI have been chosen. We just need an equivalent in XMPP that a domain can be identified/extracted. STUN already has a USERNAME attribute that can be used for individual client identification - the goal isn't to replicate that here. - Alan - On Fri, Aug 1, 2014 at 11:23 AM, Dave Cridland <[email protected]> wrote: > You might want to flag this with the [email protected] list, and/or the > [email protected] list. > > My main comment is that since SIP and HTTP both use URIs here, you don't > want to use a jid, you want an XMPP URI. Whether this should be a URI to > the server, the account, or the client, really depends on what a STUN > server is meant to do with it. > > My gut feeling is that you want just the server for most use-cases, but a > full jid might be more useful in others. > > Also, my gut - which my wife says is growing, hence its ability to have > multiple opinions - says that you quite possibly want a bare domain in all > cases rather than a URI, since the realm-like use-cases are otherwise going > to imply that a STUN server know how to parse SIP, XMPP, and HTTP URIs, and > anything else that comes along later. > > I've the vaguest notion that given the spread of use-cases, you possibly > want two attributes - an origin domain and an initiator URI. > > > On 1 August 2014 15:50, Alan Johnston <[email protected]> wrote: > >> Hi, >> >> In the TRAM WG, we are working on an extension to STUN/TURN for a client >> to convey origin information to a server. >> >> http://tools.ietf.org/html/draft-ietf-tram-stun-origin >> >> The driver for this effort is WebRTC, where the origin is the HTTP origin >> of the web site that is establishing the Peer Connection. Other users of >> STUN and TURN can also provide origin information. The draft currently has >> this text about SIP and XMPP: >> >> For a SIP User Agent [RFC3261] using STUN and TURN, the ORIGIN >> attribute is set to be the URI of the registrar server used by the >> User Agent (i.e. the Request-URI of a REGISTER method). >> >> For a Jabber client [RFC6120] using STUN and TURN, the ORIGIN >> attribute is the Jabber ID (JID) [RFC6122] of the Jabber Server that >> the client is using. >> >> We would greatly appreciate feedback from you on what this text should >> say about XMPP/Jabber in terms of a useful origin. >> >> - Alan - >> >> _______________________________________________ >> xmpp mailing list >> [email protected] >> https://www.ietf.org/mailman/listinfo/xmpp >> >> > _______________________________________________ xmpp mailing list [email protected] https://www.ietf.org/mailman/listinfo/xmpp