From ba4d8f7eba8e548af80ae72fa42ab82fad4fa009 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 14 Nov 2015 11:16:04 +0000 Subject: tests: Added OAuth 2.0 (OAUTHBEARER) tests --- tests/data/test947 | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 tests/data/test947 (limited to 'tests/data/test947') diff --git a/tests/data/test947 b/tests/data/test947 new file mode 100644 index 000000000..ad7cd78cb --- /dev/null +++ b/tests/data/test947 @@ -0,0 +1,56 @@ + + + +SMTP +SASL +SASL AUTH OAUTH2 +SASL-IR +RFC4954 +RFC6749 +RFC7628 + + + +# +# Server-side + + +AUTH OAUTHBEARER +REPLY AUTH 235 Authenticated + + + +# +# Client-side + + +smtp + + +SMTP OAuth 2.0 authentication (OAUTHBEARER) with initial response + + +mail body + + +smtp://%HOSTIP:%SMTPPORT/947 --mail-rcpt recipient@example.com --mail-from sender@example.com -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir -T - + + + +# +# Verify data after the test has been "shot" + + +EHLO 947 +AUTH OAUTHBEARER dXNlcj11c2VyAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwNQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ== +MAIL FROM: +RCPT TO: +DATA +QUIT + + +mail body +. + + + -- cgit v1.2.3