1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/ofdbus/dbus/data/auth/fallback.auth-script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,17 @@
1.4 +## this tests that a client can fallback to a secondary auth mech
1.5 +
1.6 +CLIENT
1.7 +
1.8 +## Will try EXTERNAL by default first without first calling AUTH alone.
1.9 +
1.10 +EXPECT_COMMAND AUTH
1.11 +SEND 'REJECTED EXTERNAL DBUS_COOKIE_SHA1 DBUS_TEST_NONEXISTENT_MECH'
1.12 +
1.13 +## And this time we get DBUS_COOKIE_SHA1
1.14 +
1.15 +EXPECT_COMMAND AUTH
1.16 +## of course real DBUS_COOKIE_SHA1 would not send this here...
1.17 +SEND 'OK 1234deadbeef'
1.18 +
1.19 +EXPECT_COMMAND BEGIN
1.20 +EXPECT_STATE AUTHENTICATED