summaryrefslogtreecommitdiffstats
path: root/test/data/auth/fallback.auth-script
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/auth/fallback.auth-script')
-rw-r--r--test/data/auth/fallback.auth-script21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/data/auth/fallback.auth-script b/test/data/auth/fallback.auth-script
new file mode 100644
index 00000000..1b8c40f5
--- /dev/null
+++ b/test/data/auth/fallback.auth-script
@@ -0,0 +1,21 @@
+## this tests that a client can fallback to a secondary auth mech
+
+CLIENT
+
+## Will try EXTERNAL by default first without first calling AUTH alone.
+
+EXPECT_COMMAND AUTH
+SEND 'REJECTED EXTERNAL DBUS_STUPID_TEST_MECH'
+
+## Will try EXTERNAL again.
+
+EXPECT_COMMAND AUTH
+SEND 'REJECTED EXTERNAL DBUS_STUPID_TEST_MECH'
+
+## And this time we get DBUS_STUPID_TEST_MECH.
+
+EXPECT_COMMAND AUTH
+SEND 'OK'
+
+EXPECT_COMMAND BEGIN
+EXPECT_STATE AUTHENTICATED