diff options
-rw-r--r-- | yarns/300-end-user-auth.yarn | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/yarns/300-end-user-auth.yarn b/yarns/300-end-user-auth.yarn index 8a4d412..f2a74f2 100644 --- a/yarns/300-end-user-auth.yarn +++ b/yarns/300-end-user-auth.yarn @@ -25,17 +25,17 @@ User goes to the login URL and gets a login page. AND body has an HTML form with field username AND body has an HTML form with field password - WHEN browser requests POST /qvisqve/auth, with form values + WHEN browser requests POST /auth, with form values ... username=tomjon and password=hunter2 THEN HTTP status code is 302 Found - AND Location header is https://facade/callback?code=123 + AND HTTP Location header is https://facade/callback?code=123 - WHEN facade requests POST /qvisqve/token, with + WHEN facade requests POST /token, with ... form values grant_type=authorization_code and code=123 THEN HTTP status code is 200 OK AND Content-Type is application/json - AND body has field access_token - AND body has field token_type, with value Bearer - AND body has field expires_in + AND JSON body has field access_token + AND JSON body has field token_type, with value Bearer + AND JSON body has field expires_in FINALLY Qvisqve is stopped |