-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Accelerator 4] Adding DCR gateway implementation #229
Conversation
} catch (BadJOSEException e) { | ||
log.error("Error occurred while validating the signature", e); | ||
handleBadRequestError(fsapiRequestContext, "Invalid request signature. " + e.getMessage()); | ||
} catch (JOSEException | MalformedURLException e) { | ||
log.error("Error occurred while validating the signature", e); | ||
handleBadRequestError(fsapiRequestContext, "Invalid request signature"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we combine these two catch blocks since they handle the same error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition, from where can the MalformedURLException
can be thrown and how it relates to signature validation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed,
MalformedURLException is thrown when there is an issue with the JWKS URI
[Accelerator 4] Adding DCR gateway implementation
Issue link: required
Doc Issue: Optional, link issue from documentation repository
Applicable Labels: Spec, product, version, type (specify requested labels)
Development Checklist
Testing Checklist