Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheberle authored Jan 16, 2024
1 parent 4f3950a commit 4055230
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ backend be_protected
# send to spoe
http-request send-spoe-group auth-request auth-request-group
# perform redirect and set cookie if the response was a redirect with a cookie
http-request return status 302 hdr location %[var(txn.auth_request.response_location)] hdr set-cookie %[var(req.auth_request.response_cookie)] if { var(txn.auth_request.response_redirect) -m bool } !{ var(txn.auth_request.response_successful) -m bool } { var(req.auth_request.response_cookie) -m found }
# perform redirect and set cookie if the response was a redirect with a cookie
http-request return status 302 hdr location %[var(txn.auth_request.response_location)] hdr set-cookie %[var(req.auth_request.response_cookie)] if { var(txn.auth_request.response_redirect) -m bool } !{ var(txn.auth_request.response_successful) -m bool } { var(req.auth_request.response_cookie) -m found }
# perform a redirect only if no cookie was provided
http-request redirect location %[var(txn.auth_request.response_location)] if { var(txn.auth_request.response_redirect) -m bool } !{ var(txn.auth_request.response_successful) -m bool }
# perform a redirect only if no cookie was provided
http-request redirect location %[var(txn.auth_request.response_location)] if { var(txn.auth_request.response_redirect) -m bool } !{ var(txn.auth_request.response_successful) -m bool }
# deny request otherwise
http-request deny if !{ var(txn.auth_request.response_successful) -m bool }
# deny request otherwise
http-request deny if !{ var(txn.auth_request.response_successful) -m bool }
# have your server(s) here
```
Expand Down

0 comments on commit 4055230

Please sign in to comment.