Welcome! Log In Create A New Profile

Advanced

Proxying requests based on $http_authorization (API Key)

Anonymous User
August 19, 2013 03:56PM
Hello.

We are looking to proxy requests to different backends using upstream based on http basic auth. I.E. the API key of the request. I am thinking I need to first get the API key from the raw http request ($http_authorization). Then do a lookup in redis for the backend to forward too.

We are already using OpenResty. Can we do this natively, or even better yet, are there 3rd party modules we can utilize to help with this? Is using lua required, or can we utilize standard nginx directives?

Thanks for the help, and insights.
SubjectAuthorPosted

Proxying requests based on $http_authorization (API Key)

Anonymous UserAugust 19, 2013 03:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 79
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready