test844 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMwFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ== + eyJzdGF0dXMiOiJpbnZhbGlkX3Rva2VuIiwic2NvcGUiOiJleGFtcGxlX3Njb3BlIiwib3BlbmlkLWNvbmZpZ3VyYXRpb24iOiJodHRwczovL2V4YW1wbGUuY29tLy53ZWxsLWtub3duL29wZW5pZC1jb25maWd1cmF0aW9uIn0=
  18. REPLY AQ== A002 NO Authentication failed
  19. </servercmd>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <server>
  25. imap
  26. </server>
  27. <name>
  28. IMAP OAuth 2.0 (OAUTHBEARER) failure as continuation
  29. </name>
  30. <command>
  31. 'imap://%HOSTIP:%IMAPPORT/844/;UID=1' -u user --oauth2-bearer mF_9.B5f-4.1JqM
  32. </command>
  33. # The protocol section doesn't support ways of specifying the raw data in the
  34. # base64 encoded message so we must assert this
  35. <precheck>
  36. perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%IMAPPORT' ne '9003' );"
  37. </precheck>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. # 67 - CURLE_LOGIN_DENIED
  43. <errorcode>
  44. 67
  45. </errorcode>
  46. #
  47. # The multi interface considers a broken "CONNECT" as a prematurely broken
  48. # transfer and such a connection will not get a "LOGOUT"
  49. <protocol>
  50. A001 CAPABILITY
  51. A002 AUTHENTICATE OAUTHBEARER
  52. dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMwFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ==
  53. AQ==
  54. </protocol>
  55. </verify>
  56. </testcase>