OpenID links error

微笑、不失礼 提交于 2019-12-20 06:39:16

问题


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

I have uploaded the page here. Also the openid selector from the toolbox doesn't work as i have asked here. Kindly reply.


回答1:


If you are following the example you referred to then in method HandleRelyingPartyRequest, change this line:

var request = openid.CreateRequest(Request.Form["openid_identifier"]); to

var request = openid.CreateRequest(Request.Form["openid_username"]);

and also remove any general exception you have in that method. That should resolve the issue.

Thanks, Raju



来源:https://stackoverflow.com/questions/6242724/openid-links-error

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