test824 811 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. SASL
  6. SASL AUTH OAUTH2
  7. RFC6749
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <servercmd>
  14. AUTH XOAUTH2
  15. REPLY AUTHENTICATE +
  16. REPLY dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB A002 OK AUTHENTICATE completed
  17. </servercmd>
  18. <data>
  19. From: me@somewhere
  20. To: fake@nowhere
  21. body
  22. --
  23. yours sincerely
  24. </data>
  25. </reply>
  26. #
  27. # Client-side
  28. <client>
  29. <server>
  30. imap
  31. </server>
  32. <name>
  33. IMAP OAuth 2.0 authentication
  34. </name>
  35. <command>
  36. 'imap://%HOSTIP:%IMAPPORT/824/;UID=1' -u user --oauth2-bearer mF_9.B5f-4.1JqM
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol>
  43. A001 CAPABILITY
  44. A002 AUTHENTICATE XOAUTH2
  45. dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB
  46. A003 SELECT 824
  47. A004 FETCH 1 BODY[]
  48. A005 LOGOUT
  49. </protocol>
  50. </verify>
  51. </testcase>