We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I used the java runner plugin to perform pre authentication, but now the HttpRequest object does not have the header values pass throuth.
HttpRequest
running in k8s APISIX v3.4.1-centos plugin runner : 0.4.0
The text was updated successfully, but these errors were encountered:
Can you post your filter logic?
Sorry, something went wrong.
@Override public void filter(HttpRequest request, HttpResponse response, PluginFilterChain chain) { // 这里取到的值为 null String authorization = request.getHeader(ConstHttp.HEADER_AUTHORIZATION); // 验证token ApisixAuthResult result = helper.verifyToken(authorization); if (result.isSuccess()) { chain.filter(request, response); } else { log.warn(result.getMsg()); response.setStatusCode(401); response.setHeader("Content-Type", "application/json"); response.setBody("{\"code\":\"A01101\",\"msg\":\"身份验证失败\",\"data\": null}"); } }
It seems that your problem is similar to this #254 , you can wait for this problem to be resolved and try again.
@jinnyu
No branches or pull requests
Issue description
I used the java runner plugin to perform pre authentication, but now the
HttpRequest
object does not have the header values pass throuth.Environment
running in k8s
APISIX v3.4.1-centos
plugin runner : 0.4.0
0.4.0
The text was updated successfully, but these errors were encountered: