1a359df225e5260cb87870f81a38751140b0553f
[platform/upstream/curl.git] / tests / data / test888
1 <testcase>
2 <info>
3 <keywords>
4 POP3
5 SASL
6 SASL AUTH OAUTH2
7 SASL-IR
8 RFC1734
9 RFC5034
10 RFC6749
11 RFC7628
12 </keywords>
13 </info>
14
15 #
16 # Server-side
17 <reply>
18 <servercmd>
19 AUTH OAUTHBEARER
20 REPLY AUTH +OK Login successful
21 </servercmd>
22 <data>
23 From: me@somewhere\r
24 To: fake@nowhere\r
25 \r
26 body\r
27 \r
28 --\r
29   yours sincerely\r
30 </data>
31 </reply>
32
33 #
34 # Client-side
35 <client>
36 <server>
37 pop3
38 </server>
39  <name>
40 POP3 OAuth 2.0 (OAUTHBEARER) authentication with initial response
41  </name>
42  <command>
43 pop3://%HOSTIP:%POP3PORT/888 -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
44 </command>
45 # The protocol section doesn't support ways of specifing the raw data in the
46 # base64 encoded message so we must assert this
47 <precheck>
48 perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%POP3PORT' ne '9001' );"
49 </precheck>
50 </client>
51
52 #
53 # Verify data after the test has been "shot"
54 <verify>
55 <protocol>
56 CAPA\r
57 AUTH OAUTHBEARER dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ==\r
58 RETR 888\r
59 QUIT\r
60 </protocol>
61 </verify>
62 </testcase>