How can I see the actual json payload sent to the ...
# talk-keto
h
How can I see the actual json payload sent to the
/check
endpoint for keto. The logs on the container show the query as
<nil>
, is there something I'm missing? Thanks! Logs below for a single request for reference:
Copy code
time=2023-07-12T07:07:43Z level=info msg=started handling request http_request=map[headers:map[accept-encoding:gzip authoriz │
│ ation:[Bearer ory_st_ikNe6kB7r3hxUQZfet8BeyqmrqXjg7eq] content-length:107 content-type:application/json user-agent:Go-http-c │
│ lient/1.1] host:keto-api:4456 method:POST path:/check query:<nil> remote:10.244.0.42:47982 scheme:http]                      │
│ time=2023-07-12T07:07:43Z level=info msg=completed handling request http_request=map[headers:map[accept-encoding:gzip author │
│ ization:[Bearer ory_st_ikNe6kB7r3hxUQZfet8BeyqmrqXjg7eq] content-length:107 content-type:application/json user-agent:Go-http │
│ -client/1.1] host:keto-api:4456 method:POST path:/check query:<nil> remote:10.244.0.42:47982 scheme:http] http_response=map[ │
│ headers:map[content-type:application/json; charset=utf-8] size:17 status:200 text_status:OK took:37.852041ms]
s
POST has the JSON payload in the request body
h
For further detail, I'm using oathkeeper authorizer endpoint to construct a request to send to keto. I wanted to view the request that oathkeeper sent to keto. Oathkeeper doesn't print the request before sending and keto doesnt seem to print the body
s
Hm I see... You can try curl to send the payload to Keto
And there should be some simple server to log all requests