Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
297 views
in Technique[技术] by (71.8m points)

c# - No OpenID endpoint found. - .Net OpenID

I'm using .Net Open ID (http://code.google.com/p/dotnetopenid/)

I'm trying to add OpenId to a website we are using. I'm running the MVC sample out of the box and recieve the following error when selecting Yahoo/Google.

No OpenID endpoint found.

The error happens on this line of code

return openid.CreateRequest(Request.Form["openid_identifier"]).RedirectingResponse.AsActionResult();

What does this error mean? And are there any common trouble-shooting things we can try?

Just to add the value in - Request.Form["openid_identifier"]

https://www.google.com/accounts/o8/id
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

First, check to make sure that Request.Form["openid_identifier"] is returning a valid URL (either the openid path to yahoo or google). If it's not then you have an issue with your openid selector. If it is, then the request is being made, but the openid provider isn't responding in time which causes you to get the "No OpenID endpoint found." Try issuing the request again and see if it works a second subsequent time.

UPDATE

If you're running under a proxy you need to specify that

Example:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...