test947 898 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <testcase>
  2. <info>
  3. <keywords>
  4. SMTP
  5. SASL
  6. SASL AUTH OAUTH2
  7. SASL-IR
  8. RFC4954
  9. RFC6749
  10. RFC7628
  11. </keywords>
  12. </info>
  13. #
  14. # Server-side
  15. <reply>
  16. <servercmd>
  17. AUTH OAUTHBEARER
  18. REPLY AUTH 235 Authenticated
  19. </servercmd>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <server>
  25. smtp
  26. </server>
  27. <name>
  28. SMTP OAuth 2.0 (OAUTHBEARER) authentication with initial response
  29. </name>
  30. <stdin>
  31. mail body
  32. </stdin>
  33. <command>
  34. smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir -T -
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <protocol>
  41. EHLO %TESTNUMBER
  42. AUTH OAUTHBEARER %b64[n,a=user,%01host=127.0.0.1%01port=%SMTPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64%
  43. MAIL FROM:<sender@example.com>
  44. RCPT TO:<recipient@example.com>
  45. DATA
  46. QUIT
  47. </protocol>
  48. <upload>
  49. mail body
  50. .
  51. </upload>
  52. </verify>
  53. </testcase>