You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnerrorsx.WithStack(ErrInvalidRequestURI.WithHintf("Unable to fetch OpenID Connect request parameters from 'request_uri' because: %s.", err.Error()).WithWrap(err).WithDebug(err.Error()))
71
+
}
72
+
response, err:=hc.Do(req)
70
73
iferr!=nil {
71
74
returnerrorsx.WithStack(ErrInvalidRequestURI.WithHintf("Unable to fetch OpenID Connect request parameters from 'request_uri' because: %s.", err.Error()).WithWrap(err).WithDebug(err.Error()))
72
75
}
73
76
deferresponse.Body.Close()
77
+
response.Body=io.NopCloser(io.LimitReader(response.Body, 10*1024*1024)) // limit to 10MiB
74
78
75
79
ifresponse.StatusCode!=http.StatusOK {
76
80
returnerrorsx.WithStack(ErrInvalidRequestURI.WithHintf("Unable to fetch OpenID Connect request parameters from 'request_uri' because status code '%d' was expected, but got '%d'.", http.StatusOK, response.StatusCode))
0 commit comments