[Standards] A new SASL Profile strawman
dave at cridland.net
Wed May 4 14:00:44 UTC 2016
I had a nice chat with Ralph Meijer, and we idly discussed replacing the
SASL profile in order to gain access to 2FA, fold in the Stream Resumption
(Florian Schmaus's design, in effect), and make it a little more
extensible, particularly with more detailed error messaging.
Since then I've found some fo these might be being addressed by work Adam
Roach and Matthew Miller are doing, so I thought I'd jot down a very
ill-thought-through design - it may very well be that Adam/M&M's design is
far superior, or it may be that we can borrow from each other to produce
something else. I'm not expecting this to be anything more than a
<authenticate xmlns='urn:xmpp:sasl' mechanism='SASL-MECH-NAME'
Optional sequence of:
Until server ends main SASL exchange with one of:
* Authentication is complete, no further action required. Possibly resumed
stream, last ack included (even if not resumed).
[ [ resumed='true' ] h='312' ]>
* Authentication is successful, but further authentication is needed (2FA,
<success-data><!-- Optional -->
<mechanism>HOTP</mechanism><!-- 2FA mechanism -->
<mechanism>PLAIN</mechanism><!-- Password change? -->
In which case client sends:
<next-authenticate xmlns='urn:xmpp:sasl' mechanism='HOTP'>
And possibly enters a challenge/response game again until <success/> as
above or <failure/> as below.
* Authentication (or next phase) fails, with varying forms of details
information. Note that a second-phase failure can be fairly detailed, since
the user has been partially authenticated.
<text>Human readable error message.</text>
Note that when the SASL mechanism chosen initially is a single round-trip,
such as YAP (or PLAIN, or TLS session reuse implying authentication), and
the server chooses not to require 2FA etc, then the entire session
resumption becomes a single round-trip, as with Florian's original
proposal. Sites with different security requirements can trade round-trips
for threat mitigations as they choose.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Standards