Authenticator: Bearer_token w. "query_parameter" selector consumes request body #1105
Open
6 tasks done
Labels
bug
Something is not working.
Preflight checklist
Describe the bug
GIven this rule
The upstream service will never see the body when the request is of
Content-type: application/x-www-form-urlencoded
.This is because
return r.FormValue(*tokenLocation.QueryParameter)
(inhelper/bearer.go
) will consume the bodyReproducing the bug
config.yaml:
rules.1.yaml
run.sh
okapi/main.go
$> ./run.sh
Relevant log output
time=2023-05-24T14:07:31+02:00 level=warning msg=Access request denied because roundtrip failed audience=application error=map[message:net/http: HTTP/1.x transport connection broken: http: ContentLength=140 with Body length 0 stack_trace:
Relevant configuration
Version
0.40.3
On which operating system are you observing this issue?
None
In which environment are you deploying?
Kubernetes
Additional Context
No response
The text was updated successfully, but these errors were encountered: