-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[external-auth]: auth-send-body misleading #1377
Comments
@mrahbar thank you for the report. Unfortunately is not possible to send the body using the auth_request feature. |
any other options? |
Hi @evgeny-s / @mrahbar , I am trying to print the request body after external authentication. I always get the request_body variable as empty. Please let me know if we have any option to print the $request_body in logs. |
I have invested quite some time to write an auth-server which parses request params as well as the request body to perform authentication. After testing I found that the auth_request module does not pass the request_body to the auth sub-request but drops it intentionally. I was convinced from the annotation and some previous issues e.g. #811 that auth-send-body actually does the trick.
What is the purpose of the annotation
ingress.kubernetes.io/auth-send-body: "true"
then?Is there anyway with the current build of nginx-ingress-controller (0.9.0-beta.13) to pass the request_body to the auth-server during the auth sub-request?
Thinks I have tried without success
`
Sources:
[1] https://www.nginx.com/resources/admin-guide/restricting-access-auth-request/
[2] https://www.nginx.com/resources/wiki/extending/examples/auth_request/
The text was updated successfully, but these errors were encountered: