Hi Bob! Basically <authServiceURl> is backend JAVA servlet that takes token from header, validates it and passes back 401 or 200 status. So, nothing unusual here.:) I am using auth_request module as is, no additional perl scripts, etc. Just added module to nginx, thats it. I use auth_request as 'interceptor' for every incoming request. The request suppose to have specific header, thatby mokriy - Nginx Mailing List - English
The header value should be in quotes: "$x_your_header"by mokriy - Nginx Mailing List - English
It works, you have to put header in quotes: "$http_x_header_from_request"by mokriy - Nginx Mailing List - English
Hi Maxim, Many thanks to your work! I am using auth req module and have experienced the following problem (issue). I can't get the headers to be passed to auth backend from initial request. location /initial { auth_request /auth } location /auth { proxy_pass <authServiceURL>; proxy_set_header X-Header $http_x_header_from_request; } Unfortunately, auth service does not receby mokriy - Nginx Mailing List - English
Hi Maxim, thanks a lot for your moduel. it was extremely useful for me. I have the following config: location /upload { auth_request /auth; ... location /auth { proxy_pass <authserviceURL>; } The initial request to /upload has header. I have supposed this header to be propogated down to <authserviceURL>. But this does not happen. Qby mokriy - Nginx Mailing List - English
Oh, many thanks Francis.. That is tricky. Ok, will try. To get my current flow working, I will use variable assignment in nginx and set variable a value with aggregate field. So, I can reuse it without calling aggregation several times.by mokriy - Nginx Mailing List - English
Hi Francis! Many thanks for you reply. Basically, I am using the one from Valeriy Kholodkov: http://www.grid.net.ru/nginx/upload.ru.html upload_add_header feature appeared in v 2.2, I guess: https://github.com/vkholodkov/nginx-upload-module/blob/2.2/ngx_http_upload_module.c I can find it in C code - 'upload_add_header'.by mokriy - Nginx Mailing List - English
Hi! here is the snuppet of configuration I use for uploading: location /upload { auth_request /auth; upload_pass /200; upload_store /download 1; upload_resumable on; #Return download path to calling party in custom header value upload_add_header XXX-DownloadURI "$upload_tmp_path";by mokriy - Nginx Mailing List - English