mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
XEP-0389: change how the challenge list works
This commit is contained in:
parent
0707b4e3d0
commit
12396476b8
19
xep-0389.xml
19
xep-0389.xml
@ -144,7 +144,8 @@
|
||||
<dt>Flow</dt>
|
||||
<dd>
|
||||
A flow, or more specifically a "registration flow" or "recovery flow",
|
||||
is an ordered collection of challenges.
|
||||
is a collection of challenges that together can be used to gather enough
|
||||
information to register a new account or recover an existing account.
|
||||
</dd>
|
||||
</di>
|
||||
</dl>
|
||||
@ -210,11 +211,11 @@
|
||||
for the "xml:lang" attribute.
|
||||
Clients MAY use the name element to show the different flows to the user and
|
||||
ask them to pick between them.
|
||||
Each flow must also contain a list of <challenge/> elements
|
||||
Each flow must also contain an unordered set of <challenge/> elements
|
||||
representing the various challenges that must be completed to complete the
|
||||
registration or recovery flow.
|
||||
Each <challenge/> element contains a string that uniquely (within the
|
||||
given parent element) identifies the challenge that will be offered.
|
||||
Each <challenge/> element contains a "type" attribute that uniquely
|
||||
identifies the challenge for the purpose of determining if it is supported.
|
||||
If a flow would offer the same challenge twice (eg. two dataforms asking for
|
||||
different data), the challenge SHOULD only be listed once in the flow
|
||||
element.
|
||||
@ -236,22 +237,22 @@
|
||||
<register xmlns='urn:xmpp:register:0'>
|
||||
<flow id='0'>
|
||||
<name>Verify with SMS</name>
|
||||
<challenge>jabber:x:data</challenge>
|
||||
<challenge type='jabber:x:data'/>
|
||||
</flow>
|
||||
<flow id='1'>
|
||||
<name>Verify by Phone Call</name>
|
||||
<challenge>jabber:x:data</challenge>
|
||||
<challenge type='jabber:x:data'/>
|
||||
</flow>
|
||||
<flow id='2'>
|
||||
<name>Verify with the web</name>
|
||||
<challenge>jabber:x:data</challenge>
|
||||
<challenge>jabber:x:oob</challenge>
|
||||
<challenge type='jabber:x:data'/>
|
||||
<challenge type='jabber:x:oob'/>
|
||||
</flow>
|
||||
</register>
|
||||
<recovery xmlns='urn:xmpp:register:0'>
|
||||
<flow id='0'>
|
||||
<name>Visit Password Recovery Site</name>
|
||||
<challenge>jabber:x:oob</challenge>
|
||||
<challenge type='jabber:x:oob'/>
|
||||
</flow>
|
||||
</recovery>
|
||||
</stream:features>]]></example>
|
||||
|
Loading…
Reference in New Issue
Block a user