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