test888 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 +OK Login successful
  20. </servercmd>
  21. <data>
  22. From: me@somewhere
  23. To: fake@nowhere
  24. body
  25. --
  26. yours sincerely
  27. </data>
  28. </reply>
  29. #
  30. # Client-side
  31. <client>
  32. <server>
  33. pop3
  34. </server>
  35. <name>
  36. POP3 OAuth 2.0 (OAUTHBEARER) authentication with initial response
  37. </name>
  38. <command>
  39. pop3://%HOSTIP:%POP3PORT/888 -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
  40. </command>
  41. # The protocol section doesn't support ways of specifying the raw data in the
  42. # base64 encoded message so we must assert this
  43. <precheck>
  44. perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%POP3PORT' ne '9001' );"
  45. </precheck>
  46. </client>
  47. #
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. <protocol>
  51. CAPA
  52. AUTH OAUTHBEARER dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ==
  53. RETR 888
  54. QUIT
  55. </protocol>
  56. </verify>
  57. </testcase>