Oh, l have already read about this difference between Cardspace version 1 nad 2. But left it out of consideration.
May you help me with understanding federation relationship in another example:
I took sample from geneva Framework Samples: Federation for Web Services;
And modified it so that HomeRealmSTS could issue InforCard, and involve CardSpace by changing binding configurations.
When I run the example WindowsCardSpace offers me to install new information card or sometimes retieves mex from BookStoreSTS and HomeRealmSTS and says: wrong policy;
Here are the settings:
---WebSite:
<idfx:InformationCard
ID="InformationCard1"
runat="server"
DisplayRememberMe="false"
SignInMode="Single"
SignInText="Для входа при помощи инфокарты нажмите здесь"
TitleText="Нажмите здесь"
OnSecurityTokenValidated="InformationCard1_SecurityTokenValidated"
Issuer="
https://geneva-tst.samlnew.test/FederationSample/BookStoreSTS/STS.svc"
issuerPolicy="
https://geneva-tst.samlnew.test/FederationSample/BookStoreSTS/STS.svc/mex"
RequiredClaims="
http://tempuri.org/PurchaseLimitClaim"
OnSignInError="InformationCard1_SignInError">
</idfx:InformationCard>
----BookStoreSTS (like RP-STS):
<bindings>
<ws2007FederationHttpBinding>
<binding name="BookStoreSTSBinding">
<security mode="TransportWithMessageCredential">
<message >
<issuerMetadata address="
https://geneva-tst.samlnew.test/HomeRealmSTSplusCard/STS.svc/mex" >
<identity>
<dns value ='HomeRealmSTS.com' />
</identity>
</issuerMetadata>
<claimTypeRequirements>
<add claimType="
http://tempuri.org/PurchaseLimitClaim"/>
</claimTypeRequirements>
</message>
</security>
</binding>
</ws2007FederationHttpBinding>
</bindings>
<endpoint address=""
binding="ws2007FederationHttpBinding"
bindingConfiguration="BookStoreSTSBinding"
contract="Microsoft.IdentityModel.Protocols.WSTrust.IWSTrust13SyncContract" bindingNamespace="
http://schemas.microsoft.com/ws/2008/06/identity/securitytokenservice"/>
---HomeRealmSTS (like IP-STS)
<bindings>
<wsHttpBinding>
<binding name="HomeSTSbindingConfig">
<security mode="Message">
</security>
</binding>
</wsHttpBinding>
</bindings>
<endpoint address="" binding="wsHttpBinding" contract="Microsoft.IdentityModel.Protocols.WSTrust.IWSTrust13SyncContract" />