diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-07-13 14:54:37 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-07-13 15:18:27 +0300 |
commit | 1a59110df9711ae6f04c3226a73c2747ebde93c8 (patch) | |
tree | fa73343261c268e36757f1ae595c82940ff3620b /yarns | |
parent | 23bc19647ec6fac6906ceea66041bc75602612e1 (diff) | |
download | qvisqve-1a59110df9711ae6f04c3226a73c2747ebde93c8.tar.gz |
Fix: user paths, not full URLs, since that's what IMPLEMENTS expects
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/300-end-user-auth.yarn | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yarns/300-end-user-auth.yarn b/yarns/300-end-user-auth.yarn index 2b717c8..f22bbfd 100644 --- a/yarns/300-end-user-auth.yarn +++ b/yarns/300-end-user-auth.yarn @@ -19,18 +19,18 @@ FIXME: Explain the login process here, with sequence diagram. User goes to the login URL and gets a login page. - WHEN browser requests GET https://qvisqve/login + WHEN browser requests GET /qvisqve/login THEN HTTP status code is 200 OK AND Content-Type is text/html AND body has an HTML form with field username AND body has an HTML form with field password - WHEN browser requests POST https://qvisqve/auth, with form values + WHEN browser requests POST /qvisqve/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 - WHEN facade requests POST https://qvisqve/token, with + WHEN facade requests POST /qvisqve/token, with ... form values grant_type=authorization_code and code=123 THEN HTTP status code is 200 OK AND Content-Type is application/json |