Welcome! Log In Create A New Profile

Advanced

Authorization header in combination with X-Accel-Redirect

April 14, 2010 05:33AM
I have one proxy that is handling Authorization of users for media content. This proxy really does authorize users, returning 403 if they are not permitted to access a resource. Then I proxy to amazon s3 to a private bucket. In order to authenticate _myself_ I need to pass an Authorization header to amazon s3. The name of the header is misleading because really this is authentication. Is there any way to return that header in the response from first proxy while returning X-Accel-Redirect and have it passed to the second proxy?

I've tried setting Authorization in my first proxy and then setting proxy_pass_header Authorization in the location of the second proxy but it is never passed. Is there any way to do this?

As a hack I've successfully set a query argument in X-Accel-Redirect that I then extract and use to set the Authorization header. This doesn't seem right but its working for some reason.

Thanks.

-Ian
Subject Author Posted

Authorization header in combination with X-Accel-Redirect

plantian April 14, 2010 05:33AM

Re: Authorization header in combination with X-Accel-Redirect

Maxim Dounin April 14, 2010 06:18AM

Re: Authorization header in combination with X-Accel-Redirect

plantian April 14, 2010 03:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 273
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready