113498266Sopenharmony_ci<testcase> 213498266Sopenharmony_ci<info> 313498266Sopenharmony_ci<keywords> 413498266Sopenharmony_ciSMTP 513498266Sopenharmony_ciSASL 613498266Sopenharmony_ciSASL AUTH OAUTH2 713498266Sopenharmony_ciSASL-IR 813498266Sopenharmony_ciRFC4954 913498266Sopenharmony_ciRFC6749 1013498266Sopenharmony_ciRFC7628 1113498266Sopenharmony_ci</keywords> 1213498266Sopenharmony_ci</info> 1313498266Sopenharmony_ci 1413498266Sopenharmony_ci# 1513498266Sopenharmony_ci# Server-side 1613498266Sopenharmony_ci<reply> 1713498266Sopenharmony_ci<servercmd> 1813498266Sopenharmony_ciAUTH OAUTHBEARER 1913498266Sopenharmony_ciREPLY AUTH 334 eyJzdGF0dXMiOiJpbnZhbGlkX3Rva2VuIiwic2NvcGUiOiJleGFtcGxlX3Njb3BlIiwib3BlbmlkLWNvbmZpZ3VyYXRpb24iOiJodHRwczovL2V4YW1wbGUuY29tLy53ZWxsLWtub3duL29wZW5pZC1jb25maWd1cmF0aW9uIn0 2013498266Sopenharmony_ciREPLY AQ== 535 Username and Password not accepted. Learn more at\r\n535 http://support.example.com/mail/oauth 2113498266Sopenharmony_ci</servercmd> 2213498266Sopenharmony_ci</reply> 2313498266Sopenharmony_ci 2413498266Sopenharmony_ci# 2513498266Sopenharmony_ci# Client-side 2613498266Sopenharmony_ci<client> 2713498266Sopenharmony_ci<server> 2813498266Sopenharmony_cismtp 2913498266Sopenharmony_ci</server> 3013498266Sopenharmony_ci<name> 3113498266Sopenharmony_ciSMTP OAuth 2.0 (OAUTHBEARER) failure as continuation with initial response 3213498266Sopenharmony_ci</name> 3313498266Sopenharmony_ci<stdin> 3413498266Sopenharmony_cimail body 3513498266Sopenharmony_ci</stdin> 3613498266Sopenharmony_ci<command> 3713498266Sopenharmony_cismtp://%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 - 3813498266Sopenharmony_ci</command> 3913498266Sopenharmony_ci</client> 4013498266Sopenharmony_ci 4113498266Sopenharmony_ci# 4213498266Sopenharmony_ci# Verify data after the test has been "shot" 4313498266Sopenharmony_ci<verify> 4413498266Sopenharmony_ci# 67 - CURLE_LOGIN_DENIED 4513498266Sopenharmony_ci<errorcode> 4613498266Sopenharmony_ci67 4713498266Sopenharmony_ci</errorcode> 4813498266Sopenharmony_ci# 4913498266Sopenharmony_ci# The multi interface considers a broken "CONNECT" as a prematurely broken 5013498266Sopenharmony_ci# transfer and such a connection will not get a "QUIT" 5113498266Sopenharmony_ci<protocol> 5213498266Sopenharmony_ciEHLO %TESTNUMBER 5313498266Sopenharmony_ciAUTH OAUTHBEARER %b64[n,a=user,%01host=127.0.0.1%01port=%SMTPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64% 5413498266Sopenharmony_ciAQ== 5513498266Sopenharmony_ci</protocol> 5613498266Sopenharmony_ci</verify> 5713498266Sopenharmony_ci</testcase> 58