From 320f796c8a551996dae4ac8baf76f99d7a74172e Mon Sep 17 00:00:00 2001 From: Viacheslav Slinko Date: Wed, 10 Apr 2024 23:05:34 +0300 Subject: [PATCH] upd --- .traefik.yml | 4 +++- README.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.traefik.yml b/.traefik.yml index 223cad7..c2c9464 100644 --- a/.traefik.yml +++ b/.traefik.yml @@ -3,10 +3,12 @@ type: middleware import: github.com/vslinko/secret-auth -summary: 'Authorise requests by secret cookie' +summary: 'Authorise requests by secret cookie, header or query param' testData: cookieName: "myCookie" + headerName: "X-API-Token" + paramName: "token" secretKey: "123" authUrl: "https://auth.example.com/" returnUrlParam: "return_to" diff --git a/README.md b/README.md index f04d7ae..7073423 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Secret Auth -Authorise requests by secret cookie +Authorise requests by secret cookie, header or query param ## Configuration @@ -39,6 +39,8 @@ http: secret-auth: cookieName: "myCookie" secretKey: "123" + headerName: "X-API-Token" + paramName: "token" authUrl: "https://auth.example.com/" returnUrlParam: "return_to" ```