2
0

test870 764 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. POP3
  5. SASL
  6. SASL AUTH OAUTH2
  7. RFC1734
  8. RFC5034
  9. RFC6749
  10. </keywords>
  11. </info>
  12. #
  13. # Server-side
  14. <reply>
  15. <servercmd>
  16. AUTH XOAUTH2
  17. REPLY AUTH +
  18. REPLY dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB +OK Login successful
  19. </servercmd>
  20. <data>
  21. From: me@somewhere
  22. To: fake@nowhere
  23. body
  24. --
  25. yours sincerely
  26. </data>
  27. </reply>
  28. #
  29. # Client-side
  30. <client>
  31. <server>
  32. pop3
  33. </server>
  34. <name>
  35. POP3 OAuth 2.0 (XOAUTH2) authentication
  36. </name>
  37. <command>
  38. pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM
  39. </command>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <protocol>
  45. CAPA
  46. AUTH XOAUTH2
  47. dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB
  48. RETR %TESTNUMBER
  49. QUIT
  50. </protocol>
  51. </verify>
  52. </testcase>