1<testcase> 2<info> 3<keywords> 4POP3 5SASL 6SASL AUTH OAUTH2 7RFC1734 8RFC5034 9RFC6749 10RFC7628 11</keywords> 12</info> 13 14# 15# Server-side 16<reply> 17<servercmd> 18AUTH OAUTHBEARER 19REPLY AUTH + 20REPLY %b64[n,a=user,%01host=127.0.0.1%01port=%POP3PORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64% +OK Login successful 21</servercmd> 22<data> 23From: me@somewhere 24To: fake@nowhere 25 26body 27 28-- 29 yours sincerely 30</data> 31</reply> 32 33# 34# Client-side 35<client> 36<server> 37pop3 38</server> 39<name> 40POP3 OAuth 2.0 (OAUTHBEARER) authentication 41</name> 42<command> 43pop3://%HOSTIP:%POP3PORT/%TESTNUMBER -u user --oauth2-bearer mF_9.B5f-4.1JqM 44</command> 45</client> 46 47# 48# Verify data after the test has been "shot" 49<verify> 50<protocol> 51CAPA 52AUTH OAUTHBEARER 53%b64[n,a=user,%01host=127.0.0.1%01port=%POP3PORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64% 54RETR %TESTNUMBER 55QUIT 56</protocol> 57</verify> 58</testcase> 59