• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4IMAP
5SASL
6SASL AUTH OAUTH2
7SASL-IR
8RFC6749
9RFC7628
10</keywords>
11</info>
12
13#
14# Server-side
15<reply>
16<servercmd>
17AUTH OAUTHBEARER
18CAPA SASL-IR
19REPLY AUTHENTICATE A002 OK AUTHENTICATE completed
20</servercmd>
21<data>
22From: me@somewhere
23To: fake@nowhere
24
25body
26
27--
28  yours sincerely
29</data>
30</reply>
31
32#
33# Client-side
34<client>
35<server>
36imap
37</server>
38 <name>
39IMAP OAuth 2.0 (OAUTHBEARER) authentication with initial response
40 </name>
41 <command>
42'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u user --oauth2-bearer mF_9.B5f-4.1JqM
43</command>
44</client>
45
46#
47# Verify data after the test has been "shot"
48<verify>
49<protocol>
50A001 CAPABILITY
51A002 AUTHENTICATE OAUTHBEARER %b64[n,a=user,%01host=127.0.0.1%01port=%IMAPPORT%01auth=Bearer mF_9.B5f-4.1JqM%01%01]b64%
52A003 SELECT %TESTNUMBER
53A004 FETCH 1 BODY[]
54A005 LOGOUT
55</protocol>
56</verify>
57</testcase>
58