summaryrefslogtreecommitdiffstats
path: root/test/data/auth/cancel.auth-script
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/auth/cancel.auth-script')
-rw-r--r--test/data/auth/cancel.auth-script19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/data/auth/cancel.auth-script b/test/data/auth/cancel.auth-script
new file mode 100644
index 00000000..a99c6128
--- /dev/null
+++ b/test/data/auth/cancel.auth-script
@@ -0,0 +1,19 @@
+## this tests canceling EXTERNAL
+
+SERVER
+SEND 'AUTH EXTERNAL USERID_BASE64'
+EXPECT_COMMAND OK
+EXPECT_STATE WAITING_FOR_INPUT
+SEND 'CANCEL'
+EXPECT_COMMAND REJECTED
+EXPECT_STATE WAITING_FOR_INPUT
+
+## now start over and see if it works
+SEND 'AUTH EXTERNAL USERID_BASE64'
+EXPECT_COMMAND OK
+EXPECT_STATE WAITING_FOR_INPUT
+SEND 'BEGIN'
+EXPECT_STATE AUTHENTICATED
+
+
+