OpenID的链接错误 [英] OpenID links error
问题描述
我想OpenID认证在asp.net中集成4这之后的文章。我已经着手在文章中被证明。我面临的问题是,只有OpenID登录链接工作。所有其他链接给出了一个错误: precondition失败:userSuppliedIdentifier!= NULL
I am trying to integrate openid authentication in asp.net 4 following this article. I have proceeded as was demonstrated in the article. The problem i face is that only openid login link works. All other links gives an error:
Precondition failed.: userSuppliedIdentifier != null
我已经上传了网页。 rel=\"nofollow\">。另外,作为我问这里从工具箱中选择的OpenID不工作。请回复。
I have uploaded the page here. Also the openid selector from the toolbox doesn't work as i have asked here. Kindly reply.
推荐答案
如果你是以下的例子中,你提到的那么方法HandleRelyingPartyRequest,改变这一行:
If you are following the example you referred to then in method HandleRelyingPartyRequest, change this line:
VAR请求= openid.CreateRequest(的Request.Form [openid_identifier]);
以
var request = openid.CreateRequest(Request.Form["openid_identifier"]); to
VAR请求= openid.CreateRequest(的Request.Form [openid_username]);
var request = openid.CreateRequest(Request.Form["openid_username"]);
和也删除您在该方法中有任何一般例外。这应该解决这个问题。
and also remove any general exception you have in that method. That should resolve the issue.
谢谢,
拉朱
这篇关于OpenID的链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!