dbus/test/data/auth/external-auto.auth-script
Simon McVittie 8a4928af76 test: Add a test for authenticating with an empty authorization identity
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104588
2018-01-15 14:05:21 +00:00

18 lines
522 B
Text

# Test that we can authenticate with an empty authorization identity
SERVER
EXPECT_HAVE_NO_CREDENTIALS
# C: "I want to use EXTERNAL, I decline to specify an initial response"
SEND 'AUTH EXTERNAL'
# S: "OK, who do you claim to be?"
EXPECT_COMMAND DATA
EXPECT_STATE WAITING_FOR_INPUT
EXPECT_HAVE_NO_CREDENTIALS
# C: "I am whoever the kernel says I am"
SEND 'DATA'
# S: "I suppose I can't argue with that"
EXPECT_COMMAND OK
EXPECT_STATE WAITING_FOR_INPUT
SEND 'BEGIN'
EXPECT_STATE AUTHENTICATED
EXPECT_HAVE_SOME_CREDENTIALS