-
Notifications
You must be signed in to change notification settings - Fork 826
JAV-349 Unify http request #152
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
Conversation
46088bf
to
10e7028
Compare
10e7028
to
6523574
Compare
@wujimin Could you take a look the code coverage report? It looks like there are some lines are not covered. |
… from client request
… now, forbid to run signature demo when use vertx rest transport temporary
6523574
to
142c718
Compare
yes, i added so many test case in this PR, but coverage decreased...... |
df647ac
to
9840278
Compare
simpler some implements, and delete many useless class in new implements, maybe this cause the coverage decreased |
if (serverSignature != null && !signature.equals(serverSignature)) { | ||
return Response.create(Status.UNAUTHORIZED, "signature failed"); | ||
if (serverSignature != null) { | ||
LOGGER.info("check response signature, client: {}, server: {}.", signature, serverSignature); |
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.
sinature不要记录到日志里面。 属于敏感信息内容
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.
just demo, not product
try { | ||
String signature = SignatureUtils.genSignature(request.getRequestURI(), invocation.getContext(), request); | ||
String clientSignature = invocation.getContext("signature"); | ||
LOGGER.info("check request signature, client: {}, server: {}.", clientSignature, 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.
sinature不要记录到日志里面。 属于敏感信息内容
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.
just demo, not product
unify http request to standard HttpServletRequest, not private interface