Allow authenticating forwarded requests
We have a centralized authorization service that needs to verify HMAC auth on behalf of various API servers that act as proxies to the central service. But the API clients don't know anything about this and believe they are authenticating against the API server.
So I moved the auth-hmac library to support authenticating against forwarded credentials rather than assuming those of the incoming request itself.
Here are the changes I made to support this use case: http://github.com/cap10morgan/auth-hmac/compare/master...referrer_auth
Hold off on this patch for now. Tests are failing for some reason. I'll look into it.
OK, should be fine now.