I'm using this tutorial: http://www.dotnetopenauth.net/developers/help/programmatic-openid-relying-party/
My GetResponse() call always returns null, I've also added localhost to my white list in the web.config. I feel like I've done everything right & can't find a solution on line. In debug when I look at the openid object. I has a count of 2 discovery services..
I call the method below from a JS click.
[HttpPost]
public void PingOpenID()
{
var openid = new OpenIdRelyingParty();
IAuthenticationResponse response = openid.GetResponse();
if (response != null)
{
switch (response.Status)
{
case AuthenticationStatus.Authenticated:
FormsAuthentication.RedirectFromLoginPage(
response.ClaimedIdentifier, false);
break;
case AuthenticationStatus.Canceled:
ModelState.AddModelError("loginIdentifier",
"Login was cancelled at the provider");
break;
case AuthenticationStatus.Failed:
ModelState.AddModelError("loginIdentifier",
"Login failed using the provided OpenID identifier");
break;
}
}
}