OpenID links error

2020-05-06 04:54发布

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条回答
2楼-- · 2020-05-06 05:13

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

查看更多
登录 后发表回答