de221fa91bcaf260b90f48ec334a982b75485d01
[platform/upstream/curl.git] / tests / data / test874
1 <testcase>
2 <info>
3 <keywords>
4 POP3
5 SASL
6 SASL AUTH OAUTH2
7 SASL-IR
8 RFC1734
9 RFC5034
10 RFC6749
11 </keywords>
12 </info>
13
14 #
15 # Server-side
16 <reply>
17 <servercmd>
18 AUTH XOAUTH2
19 REPLY AUTH +OK Login successful
20 </servercmd>
21 <data>
22 From: me@somewhere\r
23 To: fake@nowhere\r
24 \r
25 body\r
26 \r
27 --\r
28   yours sincerely\r
29 </data>
30 </reply>
31
32 #
33 # Client-side
34 <client>
35 <server>
36 pop3
37 </server>
38  <name>
39 POP3 OAuth 2.0 authentication with initial response
40  </name>
41  <command>
42 pop3://%HOSTIP:%POP3PORT/874 -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
43 </command>
44 </client>
45
46 #
47 # Verify data after the test has been "shot"
48 <verify>
49 <protocol>
50 CAPA\r
51 AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB\r
52 RETR 874\r
53 QUIT\r
54 </protocol>
55 </verify>
56 </testcase>