Skip to content

Commit

Permalink
Handle empty response for registration call
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Hundley <[email protected]>
  • Loading branch information
rwhundley committed Jan 29, 2025
1 parent 942872a commit f55e97d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/oidc.security/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func NewOIDCClientRegistrationError(clientID, requestMethod, origErrMsg string,
return
}
if response == nil || response.Body == nil {
oidcErr.Description = "no response received"
return
}
defer response.Body.Close()
Expand Down

0 comments on commit f55e97d

Please sign in to comment.