If you use this (Belgian government identity provider)
<trustedProviders rejectAssertionsFromUntrustedProviders="true">
<add endpoint="https://www.e-contract.be/eid-idp/endpoints/openid/ident" />
</trustedProviders>
you get:
[InvalidOperationException: Sequence contains no elements]
System.Linq.Enumerable.First(IEnumerable`1 source) +269
DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.CreateRequest(Identifier userSuppliedIdentifier) in c:\BuildAgent\work\1e6dbb6a394efdc4\src\DotNetOpenAuth.OpenId.RelyingParty\OpenId\RelyingParty\OpenIdRelyingParty.cs:412
[ProtocolException: No OpenID endpoint found.]
DotNetOpenAuth.OpenId.RelyingParty.OpenIdRelyingParty.CreateRequest(Identifier userSuppliedIdentifier) in c:\BuildAgent\work\1e6dbb6a394efdc4\src\DotNetOpenAuth.OpenId.RelyingParty\OpenId\RelyingParty\OpenIdRelyingParty.cs:414
If you change it to:
<trustedProviders rejectAssertionsFromUntrustedProviders="false">
<add endpoint="https://www.e-contract.be/eid-idp/endpoints/openid/ident" />
</trustedProviders>
It just works....
So is there anything wrong with the endpoint url? or is this just a bug in the library?