test844 985 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <testcase>
  2. <info>
  3. <keywords>
  4. IMAP
  5. SASL
  6. SASL AUTH OAUTH2
  7. RFC6749
  8. RFC7628
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <servercmd>
  15. AUTH OAUTHBEARER
  16. REPLY AUTHENTICATE +
  17. REPLY %b64[n,a=user,%01host=127.0.0.1%01port=%IMAPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64% A002 NO Authentication failed
  18. </servercmd>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. imap
  25. </server>
  26. <name>
  27. IMAP OAuth 2.0 (OAUTHBEARER) failure as continuation
  28. </name>
  29. <command>
  30. 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user --oauth2-bearer mF_9.B5f-4.1JqM
  31. </command>
  32. </client>
  33. #
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. # 67 - CURLE_LOGIN_DENIED
  37. <errorcode>
  38. 67
  39. </errorcode>
  40. #
  41. # The multi interface considers a broken "CONNECT" as a prematurely broken
  42. # transfer and such a connection will not get a "LOGOUT"
  43. <protocol>
  44. A001 CAPABILITY
  45. A002 AUTHENTICATE OAUTHBEARER
  46. %b64[n,a=user,%01host=127.0.0.1%01port=%IMAPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64%
  47. </protocol>
  48. </verify>
  49. </testcase>