OpenID links error

2020-05-06 04:43发布

问题:

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