2004-06-02 Kristian Høgsberg <krh@redhat.com>
[platform/upstream/dbus.git] / test / data / auth / fallback.auth-script
1 ## this tests that a client can fallback to a secondary auth mech 
2
3 CLIENT
4
5 ## Will try EXTERNAL by default first without first calling AUTH alone.
6
7 EXPECT_COMMAND AUTH
8 SEND 'REJECTED EXTERNAL DBUS_COOKIE_SHA1 DBUS_TEST_NONEXISTENT_MECH'
9
10 ## Will try EXTERNAL again.
11
12 EXPECT_COMMAND AUTH
13 SEND 'REJECTED EXTERNAL DBUS_COOKIE_SHA1 DBUS_TEST_NONEXISTENT_MECH'
14
15 ## And this time we get DBUS_COOKIE_SHA1
16
17 EXPECT_COMMAND AUTH
18 ## of course real DBUS_COOKIE_SHA1 would not send this here...
19 SEND 'OK'
20
21 EXPECT_COMMAND BEGIN
22 EXPECT_STATE AUTHENTICATED