Adding additional claims to a Trusted Identity Token Issuer
October 26, 2011 2 Comments
In my first blog post about setting up claims based authentication between the Thinktecture identity server and SharePoint I showed how to create a basic token that contains a single claim – emailaddress.
Here is how you can extend the claims that SharePoint will accept in a token. I’m assuming you’ve setup claims based authentication as per by previous article.
First, we get a reference to the trusted identity token issuer we created:
$ap = Get-SPTrustedIdentityTokenIssuer | where {$_.Name -eq "idp SAML Provider" }
Next we extend this to include our new claim – role:
$ap.ClaimTypes.Add("http://schemas.microsoft.com/ws/2008/06/identity/claims/role")
$ap.Update()
Next we create our claim mapping:
$map1 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.microsoft.com/ws/2008/06/identity/claims/role" -IncomingClaimTypeDisplayName "Role" –SameAsIncoming
Finally we add this mapping to our trusted identity provider:
Add-SPClaimTypeMapping -Identity $map1 -TrustedIdentityTokenIssuer $ap
If we query our trusted identity token issuer again we should see the additional claim:
Finally, logging onto our claims based authenticated site we should see our new claim courtesy of the claims viewer web part I installed from the codeplex project http://claimsid.codeplex.com/:![]()
Enjoy!





Pingback: SharePoint claims based authentication with Thinktecture identity server – Walkthrough « SharePint Blog… Hic!
Another great post – pingback