Beispiel #1
0
 private static void SetUserGroupClaims(IUser user, ClaimsBuilder builder)
 {
     foreach (Guid groupId in user.Groups.Select(g => g.Id).Distinct())
     {
         if (groupId != Guid.Empty)
         {
             builder.AddGroup(groupId);
         }
     }
 }