xref: /curl/tests/data/test844 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4IMAP
5SASL
6SASL AUTH OAUTH2
7RFC6749
8RFC7628
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<servercmd>
16AUTH OAUTHBEARER
17REPLY AUTHENTICATE +
18REPLY %b64[n,a=user,%01host=127.0.0.1%01port=%IMAPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64% A002 NO Authentication failed
19</servercmd>
20</reply>
21
22#
23# Client-side
24<client>
25<server>
26imap
27</server>
28<name>
29IMAP OAuth 2.0 (OAUTHBEARER) failure as continuation
30</name>
31<command>
32'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user --oauth2-bearer mF_9.B5f-4.1JqM
33</command>
34</client>
35
36#
37# Verify data after the test has been "shot"
38<verify>
39# 67 - CURLE_LOGIN_DENIED
40<errorcode>
4167
42</errorcode>
43#
44# The multi interface considers a broken "CONNECT" as a prematurely broken
45# transfer and such a connection will not get a "LOGOUT"
46<protocol>
47A001 CAPABILITY
48A002 AUTHENTICATE OAUTHBEARER
49%b64[n,a=user,%01host=127.0.0.1%01port=%IMAPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64%
50</protocol>
51</verify>
52</testcase>
53