Posted on: 12/12/2014 11:22:27 AM | Views : 415

Hello,
My goal is to use role access defined in the sitemap but with federation authentication.
I have implemented the following solution  to add role claim based on user Group
here my custom transformation
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Security.Principal; using System.Security.Claims; namespace MyClaimsTransformationModule { public class ClaimsTransformationModule : ClaimsAuthenticationManager { public override ClaimsPrincipal Authenticate(string resourceName, ClaimsPrincipal incomingPrincipal) { bool isAdmin = false; if (incomingPrincipal != null && incomingPrincipal.Identity.IsAuthenticated == true) { foreach (Claim claim in incom ...

Go to the complete details ...