jwt-auth-proxy
jwt-auth-proxy copied to clipboard
Query params in URL bypasses BLACKLIST setting
To reproduce
- set
PROXY_BLACKLISTto/blacklist - send a
GETrequest to/blacklistwithout any authorization header - now send another
GETrequest with query params/blacklist?foo=barwithout any authorization header
Expected behavior
Both request get 401.
Actual behavior
The second request does not get 401.
Possible cause
I believe the cause is in this function https://github.com/virtualzone/jwt-auth-proxy/blob/6d8bff8a751d58e54982791935efdf8aad0eaeb9/src/routes.go#L154-L228