xref: /curl/tests/data/test922 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4SMTP
5SASL
6SASL AUTH OAUTH2
7SASL-IR
8RFC4954
9RFC6749
10</keywords>
11</info>
12
13#
14# Server-side
15<reply>
16<servercmd>
17AUTH XOAUTH2
18REPLY AUTH 235 Authenticated
19</servercmd>
20</reply>
21
22#
23# Client-side
24<client>
25<server>
26smtp
27</server>
28<name>
29SMTP OAuth 2.0 (XOAUTH2) authentication with initial response
30</name>
31<stdin>
32mail body
33</stdin>
34<command>
35smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir -T -
36</command>
37</client>
38
39#
40# Verify data after the test has been "shot"
41<verify>
42<protocol>
43EHLO %TESTNUMBER
44AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB
45MAIL FROM:<sender@example.com>
46RCPT TO:<recipient@example.com>
47DATA
48QUIT
49</protocol>
50<upload>
51mail body
52.
53</upload>
54</verify>
55</testcase>
56