All,
Can you tell me if SharePoint 2013 supports SAML 1.1 encrypted or SAML 2.0 encrypted tokens? If so, how does one configure such a trust in powershell? Is the powershell materially different than an unencrypted token would be configured? Here is an example powershell, wonder what would be done differently than below code:
# Make sure the claim types are properly defined in the ADFS server $map = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName "EmailAddress" -SameAsIncoming $map2 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.microsoft.com/ws/2008/06/identity/claims/role" -IncomingClaimTypeDisplayName "Role" -SameAsIncoming $map3 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.sp.local/EmployeeStatus" -IncomingClaimTypeDisplayName "EmployeeStatus" -SameAsIncoming # The realm will identify the web app in ADFS. It is generally created in the form "urn:something:something_else" $realm = "urn:sp-server-2010.sp.local:sharepoint2010" # Use the certificate that has been exported from the ADFS server $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("c:\adfs20Certificate.cer") # The url below will tell SharePoint where to redirect to in order to authenticate with the STS # so this should have the ADFS url, plus the protocol (Windows integrated security - "/adfs/ls") $signinurl = "https://adfs20.sp.local/adfs/ls" # Adds the STS (AD FS 2.0) to SharePoint $ap = New-SPTrustedIdentityTokenIssuer -Name "ADFS20 Provider" -Description "SharePoint secured by ADFS20" -realm $realm -ImportTrustCertificate $cert -ClaimsMappings $map,$map2,$map3 -SignInUrl $signinurl -IdentifierClaim $map.InputClaimType # The certificate imported from the ADFS should be added to the trusted store New-SPTrustedRootAuthority -Name "ADFS Token Signing Root Authority" -Certificate $cert
-Script sample taken from here: http://www.titus.com/blog/2011/10/configuring-the-realm-using-sharepoint-2010-with-adfsv2-to-retrieve-claims/