[management] feat: Basic PocketID IDP integration (#4529)

This commit is contained in:
John Conley
2025-10-16 01:46:29 -07:00
committed by GitHub
parent 000e99e7f3
commit bb37dc89ce
4 changed files with 533 additions and 3 deletions

View File

@@ -26,9 +26,11 @@ type mockHTTPClient struct {
}
func (c *mockHTTPClient) Do(req *http.Request) (*http.Response, error) {
body, err := io.ReadAll(req.Body)
if err == nil {
c.reqBody = string(body)
if req.Body != nil {
body, err := io.ReadAll(req.Body)
if err == nil {
c.reqBody = string(body)
}
}
return &http.Response{
StatusCode: c.code,