XEP-0484: Fast Authentication Streamlining Tokens and TLS Early Data example
Hi, I cannot figure out how to use early data in XEP-0484. Main question, which part does go into the early data? <authenticate/> stanza? And how does it combine with XML stream start? How does the server should reply and when? It would be nice to have the complete example for successful auth, including indication of what goes into early data and what does not. Maybe people who already implemented early data in XEP-0484 could comment. https://xmpp.org/extensions/xep-0484.html
Hi, I have not implemented 0-rtt (The Java library I’m using sadly doesn’t support it) but I am sending the entire login+bind command opportunistically as soon as TLS established without waiting for stream features. I believe that functionally this is very similar even though the security properties are notably different. So yes I believe you would include the xml header, the stream start and the auth element in the early data. As soon as the connection is established the server responds with a stream start of it’s own, stream features and the response to auth, and stream features again (as per 0388). If your question boils down to: Do I include the stream start in early data or just the auth element then the fact that the from attribute in the stream start is required for SASL2 should be very strong evidence to support that - even if what I said earlier doesn’t convince you. But yes including a full example would probably help - even though I don’t think we are lacking any information (and in the case we did, a pure example wouldn’t help anyway as examples are not normative) cheers Daniel On Mon, Feb 3, 2025 at 9:41 PM Michael Uvarov <freeakk@gmail.com> wrote:
Hi,
I cannot figure out how to use early data in XEP-0484. Main question, which part does go into the early data? <authenticate/> stanza? And how does it combine with XML stream start? How does the server should reply and when? It would be nice to have the complete example for successful auth, including indication of what goes into early data and what does not.
Maybe people who already implemented early data in XEP-0484 could comment.
https://xmpp.org/extensions/xep-0484.html _______________________________________________ Standards mailing list -- standards@xmpp.org To unsubscribe send an email to standards-leave@xmpp.org
On Tue, Feb 4, 2025 at 8:11 AM Daniel Gultsch <daniel@gultsch.de> wrote:
So yes I believe you would include the xml header, the stream start and the auth element in the early data. As soon as the connection is established the server responds with a stream start of it’s own, stream features and the response to auth, and stream features again (as per 0388).
A quick PS: I use the first stream features to verify that my opportunistic assumptions (server supports SASL2+bind+fast) are still correct and otherwise reset the "use fast on that server" flag to ensure that the next connect properly runs through feature discovery again.
participants (2)
-
Daniel Gultsch -
Michael Uvarov