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