No OpenID endpoint found

回眸只為那壹抹淺笑 提交于 2019-12-12 00:34:57

问题


I'm trying to use the DotNetOpenAuth library to login programmatically from an aspx page. To start with, I'd like to just be able to login using a 3rd party openid provider like myopenid.

My website is an ASP .NET 4 web forms site hosted in IIS 7.5 hosted at port 9980. This port is open (inbound and outbound) in the computer's firewall.

I'm trying to use the OpenIdLogin login control but I keep getting a ProtocolException saying "No OpenID endpoint found"

I've already added this to web.config/system.net

<defaultProxy enabled="true" useDefaultCredentials="true">
     <proxy autoDetect="True" usesystemdefault="True" />
</defaultProxy>

Here's the funny part, the samples themselves are working fine. Any ideas?

-Thanks!


回答1:


Turn on logging and see what it says. It often gives much more detail about why no endpoints were found.




回答2:


Well, I found the problem. It is an issue with the corporate firewall/proxy blocking outbound connections.



来源:https://stackoverflow.com/questions/5788236/no-openid-endpoint-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!