2013-11-12 19:33:00 -05:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
POP3
|
2014-03-30 06:20:19 -04:00
|
|
|
SASL
|
2014-03-30 07:01:15 -04:00
|
|
|
SASL AUTH OAUTH2
|
2014-03-15 06:13:13 -04:00
|
|
|
SASL-IR
|
2013-11-12 19:33:00 -05:00
|
|
|
RFC1734
|
|
|
|
RFC5034
|
|
|
|
RFC6749
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<servercmd>
|
|
|
|
AUTH XOAUTH2
|
|
|
|
REPLY AUTH +OK Login successful
|
|
|
|
</servercmd>
|
|
|
|
<data>
|
|
|
|
From: me@somewhere
|
|
|
|
To: fake@nowhere
|
|
|
|
|
|
|
|
body
|
|
|
|
|
|
|
|
--
|
|
|
|
yours sincerely
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
pop3
|
|
|
|
</server>
|
|
|
|
<name>
|
2015-11-14 06:19:57 -05:00
|
|
|
POP3 OAuth 2.0 (XOAUTH2) authentication with initial response
|
2013-11-12 19:33:00 -05:00
|
|
|
</name>
|
|
|
|
<command>
|
|
|
|
pop3://%HOSTIP:%POP3PORT/874 -u user --oauth2-bearer mF_9.B5f-4.1JqM --sasl-ir
|
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
CAPA
|
|
|
|
AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG1GXzkuQjVmLTQuMUpxTQEB
|
|
|
|
RETR 874
|
|
|
|
QUIT
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|