test888 799 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
  40. </command>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <protocol>
  46. CAPA
  47. AUTH OAUTHBEARER %b64[n,a=user,%01host=127.0.0.1%01port=%POP3PORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64%
  48. RETR %TESTNUMBER
  49. QUIT
  50. </protocol>
  51. </verify>
  52. </testcase>