test890 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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/890 -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
  34. </command>
  35. # The protocol section doesn't support ways of specifying the raw data in the
  36. # base64 encoded message so we must assert this
  37. <precheck>
  38. perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%POP3PORT' ne '9001' );"
  39. </precheck>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. # 67 - CURLE_LOGIN_DENIED
  45. <errorcode>
  46. 67
  47. </errorcode>
  48. #
  49. # The multi interface considers a broken "CONNECT" as a prematurely broken
  50. # transfer and such a connection will not get a "QUIT"
  51. <protocol>
  52. CAPA
  53. AUTH OAUTHBEARER dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ==
  54. AQ==
  55. </protocol>
  56. </verify>
  57. </testcase>