Skip to content

Instantly share code, notes, and snippets.

@yaronn
Last active January 4, 2016 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaronn/8539942 to your computer and use it in GitHub Desktop.
Save yaronn/8539942 to your computer and use it in GitHub Desktop.
X509SecurityTokenParameters
X509SecurityTokenParameters x509Params = new X509SecurityTokenParameters();
x509Params.X509ReferenceStyle =
X509KeyIdentifierClauseType.SubjectKeyIdentifier;
x509Params.RequireDerivedKeys = false;
;
x509Params.InclusionMode = SecurityTokenInclusionMode.Never;
x509Params.ReferenceStyle = SecurityTokenReferenceStyle.Internal;
x509Params.X509ReferenceStyle = X509KeyIdentifierClauseType.Any;
((AsymmetricSecurityBindingElement) sec).InitiatorTokenParameters = x509Params;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment