mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 18:22:24 -05:00
copied SCRAM-SHA-1 example from draft-ietf-xmpp-3920bis
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@4300 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
bd2b1ac700
commit
330162c94c
50
xep-0206.xml
50
xep-0206.xml
@ -157,23 +157,27 @@ Content-Length: 483
|
|||||||
Host: httpcm.example.com
|
Host: httpcm.example.com
|
||||||
Accept-Encoding: gzip, deflate
|
Accept-Encoding: gzip, deflate
|
||||||
Content-Type: text/xml; charset=utf-8
|
Content-Type: text/xml; charset=utf-8
|
||||||
Content-Length: 172
|
Content-Length: 231
|
||||||
|
|
||||||
<body rid='1573741821'
|
<body rid='1573741821'
|
||||||
sid='SomeSID'
|
sid='SomeSID'
|
||||||
xmlns='http://jabber.org/protocol/httpbind'>
|
xmlns='http://jabber.org/protocol/httpbind'>
|
||||||
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='SCRAM-SHA-1'/>
|
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
|
||||||
|
mechanism='SCRAM-SHA-1'>
|
||||||
|
biwsbj1qdWxpZXQscj1vTXNUQUF3QUFBQU1BQUFBTlAwVEFBQUFBQUJQVTBBQQ==
|
||||||
|
</auth>
|
||||||
</body>
|
</body>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption="SASL authentication step 2">
|
<example caption="SASL authentication step 2">
|
||||||
<![CDATA[HTTP/1.1 200 OK
|
<![CDATA[HTTP/1.1 200 OK
|
||||||
Content-Type: text/xml; charset=utf-8
|
Content-Type: text/xml; charset=utf-8
|
||||||
Content-Length: 250
|
Content-Length: 294
|
||||||
|
|
||||||
<body xmlns='http://jabber.org/protocol/httpbind'>
|
<body xmlns='http://jabber.org/protocol/httpbind'>
|
||||||
<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
||||||
cmVhbG09InNvbWVyZWFsbSIsbm9uY2U9Ik9BNk1HOXRFUUdtMmhoIixxb3A9
|
cj1vTXNUQUF3QUFBQU1BQUFBTlAwVEFBQUFBQUJQVTBBQWUxMjQ2OTViLTY5Y
|
||||||
ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNzCg==
|
TktNGRlNi05YzMwLWI1MWIzODA4YzU5ZSxzPU5qaGtZVE0wTURndE5HWTBaaT
|
||||||
|
AwTmpkbUxUa3hNbVV0TkRsbU5UTm1ORE5rTURNeixpPTQwOTY=
|
||||||
</challenge>
|
</challenge>
|
||||||
</body>
|
</body>
|
||||||
]]></example>
|
]]></example>
|
||||||
@ -182,48 +186,22 @@ Content-Length: 250
|
|||||||
Host: httpcm.example.com
|
Host: httpcm.example.com
|
||||||
Accept-Encoding: gzip, deflate
|
Accept-Encoding: gzip, deflate
|
||||||
Content-Type: text/xml; charset=utf-8
|
Content-Type: text/xml; charset=utf-8
|
||||||
Content-Length: 418
|
Content-Length: 295
|
||||||
|
|
||||||
<body rid='1573741822'
|
<body rid='1573741822'
|
||||||
sid='SomeSID'
|
sid='SomeSID'
|
||||||
xmlns='http://jabber.org/protocol/httpbind'>
|
xmlns='http://jabber.org/protocol/httpbind'>
|
||||||
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
||||||
dXNlcm5hbWU9InNvbWVub2RlIixyZWFsbT0ic29tZXJlYWxtIixub25jZT0i
|
Yz1iaXdzLHI9b01zVEFBd0FBQUFNQUFBQU5QMFRBQUFBQUFCUFUwQUFlMTI0N
|
||||||
T0E2TUc5dEVRR20yaGgiLGNub25jZT0iT0E2TUhYaDZWcVRyUmsiLG5jPTAw
|
jk1Yi02OWE5LTRkZTYtOWMzMC1iNTFiMzgwOGM1OWUscD1VQTU3dE0vU3ZwQV
|
||||||
MDAwMDAxLHFvcD1hdXRoLGRpZ2VzdC11cmk9InhtcHAvZXhhbXBsZS5jb20i
|
RCa0gyRlhzMFdEWHZKWXc9
|
||||||
LHJlc3BvbnNlPWQzODhkYWQ5MGQ0YmJkNzYwYTE1MjMyMWYyMTQzYWY3LGNo
|
|
||||||
YXJzZXQ9dXRmLTgK
|
|
||||||
</response>
|
</response>
|
||||||
</body>
|
</body>
|
||||||
]]></example>
|
]]></example>
|
||||||
<example caption="SASL authentication step 4">
|
<example caption="SASL authentication step 4">
|
||||||
<![CDATA[HTTP/1.1 200 OK
|
<![CDATA[HTTP/1.1 200 OK
|
||||||
Content-Type: text/xml; charset=utf-8
|
Content-Type: text/xml; charset=utf-8
|
||||||
Content-Length: 190
|
Content-Length: 109
|
||||||
|
|
||||||
<body xmlns='http://jabber.org/protocol/httpbind'>
|
|
||||||
<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
|
|
||||||
cnNwYXV0aD1lYTQwZjYwMzM1YzQyN2I1NTI3Yjg0ZGJhYmNkZmZmZAo=
|
|
||||||
</challenge>
|
|
||||||
</body>
|
|
||||||
]]></example>
|
|
||||||
<example caption="SASL authentication step 5">
|
|
||||||
<![CDATA[POST /webclient HTTP/1.1
|
|
||||||
Host: httpcm.example.com
|
|
||||||
Accept-Encoding: gzip, deflate
|
|
||||||
Content-Type: text/xml; charset=utf-8
|
|
||||||
Content-Length: 152
|
|
||||||
|
|
||||||
<body rid='1573741823'
|
|
||||||
sid='SomeSID'
|
|
||||||
xmlns='http://jabber.org/protocol/httpbind'>
|
|
||||||
<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
|
||||||
</body>
|
|
||||||
]]></example>
|
|
||||||
<example caption="SASL authentication step 6">
|
|
||||||
<![CDATA[HTTP/1.1 200 OK
|
|
||||||
Content-Type: text/xml; charset=utf-8
|
|
||||||
Content-Length: 121
|
|
||||||
|
|
||||||
<body xmlns='http://jabber.org/protocol/httpbind'>
|
<body xmlns='http://jabber.org/protocol/httpbind'>
|
||||||
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
|
||||||
|
Loading…
Reference in New Issue
Block a user