rongxianjie commented on issue #232:
URL:
https://github.com/apache/apisix-java-plugin-runner/issues/232#issuecomment-1455308523
yes, it the plugin of the authentication, the implement fo the plugin is
like below:
@Component
public class ClientAuthenticationFilter implements PluginFilter {
@Override
public void postFilter(PostRequest request, PostResponse response,
PluginFilterChain chain) {
log.warn("ClientAuthenticationFilter is running");
log.warn("status:{}", request.getUpstreamStatusCode());
**//i want to get the upstream body, but it cant , the reponseBody
is null, so it throws the NullPointerException**
String responseBody = request.getBody();
String authResult = processAuthResult(responseBody );
response.setBody(authResult );
chain.postFilter(request, response);
}
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]