Reputation: 465
Im using DotNetOpenAuth and when i call :
this.openIdRelyingParty.CreateRequest(userSuppliedIdentifier, realm, returnToUrl);
I get the error above... I am using my own OpenID Provider which i just have running in localhost. Does anyone have any idea what that could be? the internal exception says sequence contains no items or something like that.
I was thinking maybe i was pointing my RP to the wrong location where i have my localhost running. Is it correct to have point the RP to the XRDS file ?
Thanks Neil
Upvotes: 0
Views: 1905
Reputation: 81791
The userSuppliedIdentifier
should typically be the URL of the OpenID Provider web site -- not directly at the XRDS file. The home page of the Provider should detect a call for an XRDS doc and respond appropriately. The OpenIdProvider[Mvc] samples demonstrate this.
Since you're hosting on localhost, a very likely problem is that the RP refuses to connect to localhost endpoints (security by default, as that isn't really a valid scenario when you're in production). So you have to whitelist localhost in your web.config file when you're developing locally. See the OpenIdRelyingParty[WebForms/Mvc] sample's web.config file for how to do that.
Upvotes: 1