How to return 401s to the client on auth failure.
frontend http
# *snip*
http-request deny if ! { var(txn.auth_response_successful) -m bool }
will return 403.
we can use
frontend http
# *snip*
http-request auth if ! { var(txn.auth_response_successful) -m bool }
But it'll return 401 with basic auth instead of bearer token. Do you have any workaround for this?
How to return 401s to the client on auth failure.
will return 403.
we can use
But it'll return 401 with basic auth instead of bearer token. Do you have any workaround for this?