test890 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. # Server-side
  16. <reply>
  17. <servercmd>
  18. AUTH OAUTHBEARER
  19. REPLY AUTH + eyJzdGF0dXMiOiJpbnZhbGlkX3Rva2VuIiwic2NvcGUiOiJleGFtcGxlX3Njb3BlIiwib3BlbmlkLWNvbmZpZ3VyYXRpb24iOiJodHRwczovL2V4YW1wbGUuY29tLy53ZWxsLWtub3duL29wZW5pZC1jb25maWd1cmF0aW9uIn0
  20. REPLY AQ== -ERR Authentication failed
  21. </servercmd>
  22. </reply>
  23. #
  24. # Client-side
  25. <client>
  26. <server>
  27. pop3
  28. </server>
  29. <name>
  30. POP3 OAuth 2.0 (OAUTHBEARER) failure as continuation with initial response
  31. </name>
  32. <command>
  33. pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
  34. </command>
  35. </client>
  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 "QUIT"
  46. <protocol>
  47. CAPA
  48. AUTH OAUTHBEARER %b64[n,a=user,%01host=127.0.0.1%01port=%POP3PORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64%
  49. AQ==
  50. </protocol>
  51. </verify>
  52. </testcase>