test828 821 B

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