Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
vslinko committed Apr 10, 2024
1 parent 75d93d0 commit 320f796
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Secret Auth

Authorise requests by secret cookie
Authorise requests by secret cookie, header or query param

## Configuration

Expand Down Expand Up @@ -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"
```

0 comments on commit 320f796

Please sign in to comment.