xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | POP3 |
| 5 | SASL |
| 6 | SASL AUTH OAUTH2 |
| 7 | SASL-IR |
| 8 | RFC1734 |
| 9 | RFC5034 |
| 10 | RFC6749 |
| 11 | RFC7628 |
| 12 | </keywords> |
| 13 | </info> |
| 14 | |
| 15 | # |
| 16 | # Server-side |
| 17 | <reply> |
| 18 | <servercmd> |
| 19 | AUTH OAUTHBEARER |
| 20 | REPLY AUTH + 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 with initial response |
| 33 | </name> |
| 34 | <command> |
| 35 | pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir |
| 36 | </command> |
| 37 | </client> |
| 38 | |
| 39 | # |
| 40 | # Verify data after the test has been "shot" |
| 41 | <verify> |
| 42 | # 67 - CURLE_LOGIN_DENIED |
| 43 | <errorcode> |
| 44 | 67 |
| 45 | </errorcode> |
| 46 | # |
| 47 | # The multi interface considers a broken "CONNECT" as a prematurely broken |
| 48 | # transfer and such a connection will not get a "QUIT" |
| 49 | <protocol> |
| 50 | CAPA
|
| 51 | AUTH OAUTHBEARER %b64[n,a=user,%01host=127.0.0.1%01port=%POP3PORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64%
|
| 52 | AQ==
|
| 53 | </protocol> |
| 54 | </verify> |
| 55 | </testcase> |