This project is read-only.


GetCallBackUrl is invalid on Azure


Working with the Azure DevFabric, the web role runs on port 82, but the request comes in on port 81.

GetCallBackUrl returns a URL for port 82 which then fails the IAuthenticationService.IsValid test.

Attached is an updated OpenIdController.cs with an updated GetCallBackUrl which works for both Azure and standard sites.

A similar issue may occur on a site using port forwarding in a router. This should fix that issue as well.

file attachments


rockon1119 wrote Jan 18, 2012 at 7:43 PM

@DarthChucks thanks for posting this, definitely an issue. Think you could fork the source, add your fix with some tests? That would be awesome!