test844 (985B)
1 <testcase> 2 <info> 3 <keywords> 4 IMAP 5 SASL 6 SASL AUTH OAUTH2 7 RFC6749 8 RFC7628 9 </keywords> 10 </info> 11 12 # 13 # Server-side 14 <reply> 15 <servercmd> 16 AUTH OAUTHBEARER 17 REPLY AUTHENTICATE + 18 REPLY %b64[n,a=user,%01host=127.0.0.1%01port=%IMAPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64% A002 NO Authentication failed 19 </servercmd> 20 </reply> 21 22 # 23 # Client-side 24 <client> 25 <server> 26 imap 27 </server> 28 <name> 29 IMAP OAuth 2.0 (OAUTHBEARER) failure as continuation 30 </name> 31 <command> 32 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user --oauth2-bearer mF_9.B5f-4.1JqM 33 </command> 34 </client> 35 36 # 37 # Verify data after the test has been "shot" 38 <verify> 39 # 67 - CURLE_LOGIN_DENIED 40 <errorcode> 41 67 42 </errorcode> 43 # 44 # The multi interface considers a broken "CONNECT" as a prematurely broken 45 # transfer and such a connection will not get a "LOGOUT" 46 <protocol> 47 A001 CAPABILITY 48 A002 AUTHENTICATE OAUTHBEARER 49 %b64[n,a=user,%01host=127.0.0.1%01port=%IMAPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64% 50 </protocol> 51 </verify> 52 </testcase>