test889 1.1 KB

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