I have a load balancer with some web servers behind it. The traffic hitting the load balancer is secured with SSL and the data coming from the load balancer to the web server is sent as unencrypted HTTP traffic. I am using the DotNetOpenAuth OAuth Service Provider behind the load balancer on the web servers.
When a request is sent from my client, I am hitting https://www.mydomain.com/OAuth.ashx However, once it hits the load balancer, the protocol is changed to HTTP and the URL that is actually read by the HttpContext's Request.Url is http://www.mydomain.com/OAuth.ashx.
The protocol in the URL is getting modified. Has anyone encountered this and if so, how did you resolve this problem? The only thing I can think of is to get the DotNetOpenAuth source, modify the code to force the https URL, then compile it and use that instead of the pre-packed assemblies.
Any direction is appreciated.