i m programmatically doing an openid handshake with yahoo and google. google is fine, but yahoo throws a null pointer:
stack trace:
System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetOpenAuth.OpenId.Extensions.ProviderAuthenticationPolicy.PolicyResponse.DotNetOpenAuth.Messaging.IMessageWithEvents.OnReceiving() in c:UsersandarnogitdotnetopenidsrcDotNetOpenAuthOpenIdExtensionsProviderAuthenticationPolicyPolicyResponse.cs:line 189
at DotNetOpenAuth.OpenId.ChannelElements.ExtensionsBindingElement.<GetExtensions>d__a.MoveNext() in c:UsersandarnogitdotnetopenidsrcDotNetOpenAuthOpenIdChannelElementsExtensionsBindingElement.cs:line 209
at DotNetOpenAuth.OpenId.ChannelElements.ExtensionsBindingElement.ProcessIncomingMessage(IProtocolMessage message) in c:UsersandarnogitdotnetopenidsrcDotNetOpenAuthOpenIdChannelElementsExtensionsBindingElement.cs:line 151
at DotNetOpenAuth.Messaging.Channel.ProcessIncomingMessage(IProtocolMessage message) in c:UsersandarnogitdotnetopenidsrcDotNetOpenAuthMessagingChannel.cs:line 906
at DotNetOpenAuth.OpenId.ChannelElements.OpenIdChannel.ProcessIncomingMessage(IProtocolMessage message) in c:UsersandarnogitdotnetopenidsrcDotNetOpenAuthOpenIdChannelElementsOpenIdChannel.cs:line 171
at DotNetOpenAuth.Messaging.Channel.ReadFromRequest(HttpRequestInfo httpRequest) in c:UsersandarnogitdotnetopenidsrcDotNetOpenAuthMessagingChannel.cs:line 377
at DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.GetResponse(HttpRequestInfo httpRequestInfo) in c:UsersandarnogitdotnetopenidsrcDotNetOpenAuthOpenIdRelyingPartyOpenIdRelyingParty.cs:line 489
at DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.GetResponse() in c:UsersandarnogitdotnetopenidsrcDotNetOpenAuthOpenIdRelyingPartyOpenIdRelyingParty.cs:line 478
at Friendsell.UI.Controllers.Auth.OpenIdReturnController.DoProcessRequest(IExecutionContext context) in C:DevelopmentFriendsellFriendsell.UIControllersAuthOpenIdController.cs:line 41
at Bistro.Controllers.AbstractController.ProcessRequest(HttpContextBase context, IContext requestContext) in C:DevelopmentBistroBistro.CoreControllersAbstractController.cs:line 41
at Bistro.Controllers.MethodDispatcher.InvokeMethodDirect(HttpContextBase context, String requestPoint, IContext requestContext) in C:DevelopmentBistroBistro.CoreControllersMethodDispatcher.cs:line 221
at Bistro.Controllers.MethodDispatcher.InvokeMethod(HttpContextBase context, String requestPoint, IContext requestContext) in C:DevelopmentBistroBistro.CoreControllersMethodDispatcher.cs:line 119
invoking code:
var openid = new OpenIdRelyingParty();
IAuthenticationRequest request = openid.CreateRequest(
Identifier.Parse(
GetEndpoint()),
new Realm(realm),
new Uri(returnUri));
// Require some additional data
request.AddExtension(new ClaimsRequest
{
Email = DemandLevel.Require,
FullName = DemandLevel.Request,
PostalCode = DemandLevel.Request
});
try
{
request.RedirectToProvider();
} catch (ThreadAbortException)
{
}
receiving code (and the source of the exception)
var openId = new OpenIdRelyingParty();
var response = openId.GetResponse(); <-- exception happens here
what gives? the weird thing is that the yahoo piece was working recently, and i haven t changed the library version...