quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test888 (799B)


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