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