Imported Upstream version 7.48.0
[platform/upstream/curl.git] / tests / data / test889
1 <testcase>
2 <info>
3 <keywords>
4 POP3
5 SASL
6 SASL AUTH OAUTH2
7 RFC1734
8 RFC5034
9 RFC6749
10 RFC7628
11 </keywords>
12 </info>
13
14 #
15 # Server-side
16 <reply>
17 <servercmd>
18 AUTH OAUTHBEARER
19 REPLY AUTH +
20 REPLY dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ== + eyJzdGF0dXMiOiJpbnZhbGlkX3Rva2VuIiwic2NvcGUiOiJleGFtcGxlX3Njb3BlIiwib3BlbmlkLWNvbmZpZ3VyYXRpb24iOiJodHRwczovL2V4YW1wbGUuY29tLy53ZWxsLWtub3duL29wZW5pZC1jb25maWd1cmF0aW9uIn0
21 REPLY AQ== -ERR Authentication failed
22 </servercmd>
23 </reply>
24
25 #
26 # Client-side
27 <client>
28 <server>
29 pop3
30 </server>
31  <name>
32 POP3 OAuth 2.0 (OAUTHBEARER) failure as continuation
33  </name>
34  <command>
35 pop3://%HOSTIP:%POP3PORT/889 -u user --oauth2-bearer mF_9.B5f-4.1JqM
36 </command>
37 # The protocol section doesn't support ways of specifing the raw data in the
38 # base64 encoded message so we must assert this
39 <precheck>
40 perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%POP3PORT' ne '9001' );"
41 </precheck>
42 </client>
43
44 #
45 # Verify data after the test has been "shot"
46 <verify>
47 # 67 - CURLE_LOGIN_DENIED
48 <errorcode>
49 67
50 </errorcode>
51 #
52 # The multi interface considers a broken "CONNECT" as a prematurely broken
53 # transfer and such a connection will not get a "QUIT"
54 <protocol>
55 CAPA\r
56 AUTH OAUTHBEARER\r
57 dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ==\r
58 AQ==\r
59 </protocol>
60 </verify>
61 </testcase>