protected override IClaimsIdentity GetOutputClaimsIdentity(IClaimsPrincipal principal,
RequestSecurityToken request, Scope scope)
{
var nameIdentifierClaim = new Claim(ClaimTypes.NameIdentifier, "me@zamd.com");
nameIdentifierClaim.Properties[ClaimProperties.SamlNameIdentifierFormat] = "EMAIL";
More Here
return new ClaimsIdentity(
new Claim[]
{
new Claim(System.IdentityModel.Claims.ClaimTypes.Name, "Zulfiqar"),
nameIdentifierClaim
});
This generates following Saml Assertion where you can see the generated NameIdentifier & format attribute.