test887 861 B

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