test889 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. <info>
  3. <keywords>
  4. POP3
  5. SASL
  6. SASL AUTH OAUTH2
  7. RFC1734
  8. RFC5034
  9. RFC6749
  10. RFC7628
  11. </keywords>
  12. </info>
  13. #
  14. # Server-side
  15. <reply>
  16. <servercmd>
  17. AUTH OAUTHBEARER
  18. REPLY AUTH +
  19. REPLY dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ== + 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
  31. </name>
  32. <command>
  33. pop3://%HOSTIP:%POP3PORT/889 -u user --oauth2-bearer mF_9.B5f-4.1JqM
  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
  54. dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ==
  55. AQ==
  56. </protocol>
  57. </verify>
  58. </testcase>