OAuth
OAuth copied to clipboard
Add load balancer support
Add load balancer support using non-standard X-Forwarded headers.
Basically it adds support for AWS Elastic Load Balancer. See docs here x-forwarded-headers and a proposed standard rfc7239 which varies a bit since it does not seem to add support for the X-Forwarded-Port
header.
I also confirm that this does work behind a ELB that does SSL termination.
Hi, thank you for your contribution! I'm very busy at the moment, so I'll look at it during the weekend.
@brutuscat I'm sorry, I kind of forgot about this PR. Are you still interested in this?
If so, please add tests and then I'll merge it.
@jacobkiers I have it working just fine in my fork, so yes I'm interested as anyone who is behind a load balancer will be too I guess... You might also want to add support for this too http://tools.ietf.org/html/rfc7239