coheigea commented on a change in pull request #540: handle signing and digest
together
URL: https://github.com/apache/cxf/pull/540#discussion_r276278713
##########
File path:
rt/rs/security/http-signature/src/main/java/org/apache/cxf/rs/security/httpsignature/filters/CreateDigestInterceptor.java
##########
@@ -62,10 +70,17 @@ public void aroundWriteTo(WriterInterceptorContext
context) throws IOException {
if (shouldAddDigest(context)) {
addDigest(context);
} else {
+ sign(context);
context.proceed();
}
}
+ private void sign(WriterInterceptorContext writerInterceptorContext) {
+ String method =
HttpUtils.getProtocolHeader(JAXRSUtils.getCurrentMessage(),
+ Message.HTTP_REQUEST_METHOD, "");
+ performSignature(writerInterceptorContext.getHeaders(),
uriInfo.getPath(), method);
Review comment:
This should be: uriInfo.getRequestUri().getPath()
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services