没有OpenID端点发现。 - .NET的OpenID [英] No OpenID endpoint found. - .Net OpenID

查看:1217
本文介绍了没有OpenID端点发现。 - .NET的OpenID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的.Net打开ID(的http:// code。 google.com/p/dotnetopenid/

我想的OpenID添加到我们使用的一个网站。我运行MVC样品开箱并选择雅虎/谷歌时,收到以下错误。


  

没有OpenID端点发现。


在这条线code,会发生误差

 返回openid.CreateRequest(的Request.Form [openid_identifier])RedirectingResponse.AsActionResult()。

这是什么错误呢?以及是否有任何常见故障排除的东西,我们可以尝试?

只是为了增加价值 - 的Request.Form [openid_identifier]

  https://www.google.com/accounts/o8/id


解决方案

首先,检查以确保的Request.Form [openid_identifier]返回一个有效的URL(无论是OpenID的路径,雅虎或谷歌)。如果不是,那么你与你的OpenID选择的问题。如果是,则请求被提出,但OpenID提供者不及时导致你得到的回应没有OpenID端点发现。尝试再次发出请求,看看它是否工作第二次以后的时间。

更新

如果你是下一个代理运行,你需要指定

例如:

 < defaultProxy useDefaultCredentials =真正的>
    <代理自动=真usesystemdefault =真/>
< / defaultProxy>

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

解决方案

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>

这篇关于没有OpenID端点发现。 - .NET的OpenID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆