From 41f85eaf5f7e7bcb894c6869628b8dd07b0c9056 Mon Sep 17 00:00:00 2001 From: Adam Cattermole Date: Fri, 20 Sep 2024 11:03:02 +0100 Subject: [PATCH] Add auth examples to the doc Signed-off-by: Adam Cattermole --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4bb803ac..73fffee2 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,12 @@ There is then a single auth policy defined for e2e testing: ```sh curl -H "Host: test.a.auth.com" http://127.0.0.1:8000/get -i +# HTTP/1.1 401 Unauthorized +``` + +```sh +curl -H "Host: test.a.auth.com" -H "Authorization: APIKEY ndyBzreUzF4zqDQsqSPMHkRhriEOtcRx" http://127.0.0.1:8000/get -i +# HTTP/1.1 200 OK ``` And three rate limit policies defined for e2e testing: