"OpenID endpoint not found" on Azure website

I have a weird problem with an MVC 3 application running as an Azure Website. I had problems with Azure in the past, but the new website concept works almost perfectly, except for this:

DotNetOpenAuth.Messaging.ProtocolException: No OpenID endpoint found. 

This only happens with Google, only on Azure. Running on the local computer works fine, it works on AppHarbor, it works fine, but on Azure every attempt to use Google to log into OpenID will result in a server error due to this exception (monitored using Airbrake).

See for yourself, try logging into Google on my site , and if you immediately get a page with a server error, then DNOA throws it out. All other login methods work fine, including Yahoo and AOL, which are also OpenID.

PS: Don't try too many times, but AirBrake will happily spam my email address: <

+6
source share
2 answers

Try adding this code to your website before calling OpenIdRelyingParty.CreateRequest :

 ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3; 

In some Azure configurations, this has been shown to solve the problem. Please let us know if this also solves your problem.

+3
source

I had this function in global.asax:

 AreaRegistration.RegisterAllAreas(); 

After deleting this line, everything works fine.

I added some areas to my application, this function was added automatically by VS2012.

-1
source

Source: https://habr.com/ru/post/917724/


All Articles