Return to test887 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data |
1.1 ! misho 1: <testcase> ! 2: <info> ! 3: <keywords> ! 4: POP3 ! 5: SASL ! 6: SASL AUTH OAUTH2 ! 7: RFC1734 ! 8: RFC5034 ! 9: RFC6749 ! 10: RFC7628 ! 11: </keywords> ! 12: </info> ! 13: ! 14: # ! 15: # Server-side ! 16: <reply> ! 17: <servercmd> ! 18: AUTH OAUTHBEARER ! 19: REPLY AUTH + ! 20: REPLY bixhPXVzZXIsAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ== +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 ! 41: </name> ! 42: <command> ! 43: pop3://%HOSTIP:%POP3PORT/887 -u user --oauth2-bearer mF_9.B5f-4.1JqM ! 44: </command> ! 45: # The protocol section doesn't support ways of specifying the raw data in the ! 46: # base64 encoded message so we must assert this ! 47: <precheck> ! 48: perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%POP3PORT' ne '9001' );" ! 49: </precheck> ! 50: </client> ! 51: ! 52: # ! 53: # Verify data after the test has been "shot" ! 54: <verify> ! 55: <protocol> ! 56: CAPA ! 57: AUTH OAUTHBEARER ! 58: bixhPXVzZXIsAWhvc3Q9MTI3LjAuMC4xAXBvcnQ9OTAwMQFhdXRoPUJlYXJlciBtRl85LkI1Zi00LjFKcU0BAQ== ! 59: RETR 887 ! 60: QUIT ! 61: </protocol> ! 62: </verify> ! 63: </testcase>