I'm trying to configure the LiveId integration with SharePoint 2010. MS Service Manager Settings:
Domain name: domain.com
DNS: urn:subdomain-dev:int
Default Return URL: https://subdomain-dev.domain.com/SitePages/Home.aspx
I've imported X509 certificate. After that I use following PowerShell Script to create TrustedIdentityTokenIssuer:
asnp microsoft.sharepoint.powershell
$realm = "urn:subdomain-dev:int"
$certfile = "C:\LiveID-INT.cer"
$rootcert = Get-PfxCertificate $certfile
New-SPTrustedRootAuthority "Live ID INT Root Authority" -Certificate $rootcert
$emailclaim = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/claims/EmailAddress" -IncomingClaimTypeDisplayName "http://schemas.xmlsoap.org/claims/EmailAddress" -SameAsIncoming
$upnclaim = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier" -IncomingClaimTypeDisplayName "UPN" -LocalClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"
$authp = New-SPTrustedIdentityTokenIssuer -Name "LiveID INT" -Description "LiveID INT" -Realm $realm -ImportTrustCertificate $certfile -ClaimsMappings $emailclaim,$upnclaim -SignInUrl "https://login.live-int.com/login.srf" -IdentifierClaim "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier"
Problem: After creating the web application specifying in host subdomain-dev.domain.com creating SiteCollection and trying access it I receive the 500 Error in web browser. ULS logs shows Security Exception :
System.IdentityModel.Tokens.SecurityTokenException: The issuer of the token is not a trusted issuer.
I assume that it was not correctly mapped to the realm (or DNS). How should I specify my domain and DNS in Service Manager. Or any other ideas?