summaryrefslogtreecommitdiff
path: root/yarns/300-end-user-auth.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/300-end-user-auth.yarn')
-rw-r--r--yarns/300-end-user-auth.yarn4
1 files changed, 4 insertions, 0 deletions
diff --git a/yarns/300-end-user-auth.yarn b/yarns/300-end-user-auth.yarn
index f2a74f2..46d6236 100644
--- a/yarns/300-end-user-auth.yarn
+++ b/yarns/300-end-user-auth.yarn
@@ -26,6 +26,10 @@ User goes to the login URL and gets a login page.
AND body has an HTML form with field password
WHEN browser requests POST /auth, with form values
+ ... username=tomjon and password=wrong
+ THEN HTTP status code is 401 Unauthorized
+
+ WHEN browser requests POST /auth, with form values
... username=tomjon and password=hunter2
THEN HTTP status code is 302 Found
AND HTTP Location header is https://facade/callback?code=123