Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions SharePointContextSaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,12 @@ private static string IssueToken(
}


if (addSamlClaim)
{
actorClaims.Add(new JsonWebTokenClaim(samlClaimType, samlClaimValue));
}
//this is incorrect, SP blocks user claims on actor tokens now as of Apr 2020
//this change was incorporated into fixes after that time. ULS event ID of the block is 'dem4o'
//if (addSamlClaim)
//{
// actorClaims.Add(new JsonWebTokenClaim(samlClaimType, samlClaimValue));
//}

// Create token
JsonWebSecurityToken actorToken = new JsonWebSecurityToken(
Expand Down Expand Up @@ -549,4 +551,4 @@ protected override bool ValidateSharePointContext(SharePointContext spContext, H
}

#endregion HighTrust
}
}