From 1d00088d899d7db504093a34faf049a98ce24776 Mon Sep 17 00:00:00 2001 From: Thomas Hii Date: Wed, 31 May 2023 16:44:37 +0000 Subject: [PATCH] Update test cases --- packages/auth/example/client/example1.http | 9 +++++++++ packages/auth/example/client/example2.http | 5 ----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/auth/example/client/example1.http b/packages/auth/example/client/example1.http index 36bb9f52..256c8ae2 100644 --- a/packages/auth/example/client/example1.http +++ b/packages/auth/example/client/example1.http @@ -6,3 +6,12 @@ POST http://localhost:3000/login HTTP/1.1 Content-Type: application/json Authorization: Basic jdoe1:password +### Failure redirect +POST http://localhost:3000/login HTTP/1.1 +Content-Type: application/json +Authorization: Basic password:username + +### Force basic +POST http://localhost:3000/hello HTTP/1.1 +Content-Type: application/json +Accept:application/json \ No newline at end of file diff --git a/packages/auth/example/client/example2.http b/packages/auth/example/client/example2.http index 6a4ddc51..feba0fdd 100644 --- a/packages/auth/example/client/example2.http +++ b/packages/auth/example/client/example2.http @@ -1,8 +1,3 @@ ### Load landing page GET http://localhost:3000/ HTTP/1.1 -### Failure redirect -POST http://localhost:3000/login HTTP/1.1 -Content-Type: application/json -Authorization: Basic password:username -