go-oidc
go-oidc copied to clipboard
limit the size of the logged response to 2048 bytes in error cases
Fixes #306
Maybe we should also limit the size while reading the body itself, currently we have
body, err := ioutil.ReadAll(resp.Body)
we could do instead
body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 262144))