ClaimsTransformation.Language 0.0.2

Package Description

There is a newer version of this package available.
See the version list below for details.
Install-Package ClaimsTransformation.Language -Version 0.0.2
dotnet add package ClaimsTransformation.Language --version 0.0.2
<PackageReference Include="ClaimsTransformation.Language" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ClaimsTransformation.Language --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ClaimsTransformation

An implementation of the ADFS claims transformation language for .NET

Some informations exist;

  • https://docs.microsoft.com/en-us/windows-server/identity/solution-guides/claims-transformation-rules-language
  • https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd807118(v=ws.10)

Here is a usage example;

//Setup (this can be done once)
var parser = new ClaimsTransformationParser();
var cache = new ClaimsTransformationCache();
var engine = new ClaimsTransformationEngine(parser, cache);

var expression =
  @"C1:[] " +
  @"=> ISSUE(TYPE = ""http://namespace/role"", VALUE = ""Public"");";

//Read these claims from your authentication token.
var input = new Claim[] { };
//Use these claims for your security.
var output = engine.Transform(expression, input);

See the test suite for more examples.

ClaimsTransformation

An implementation of the ADFS claims transformation language for .NET

Some informations exist;

  • https://docs.microsoft.com/en-us/windows-server/identity/solution-guides/claims-transformation-rules-language
  • https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd807118(v=ws.10)

Here is a usage example;

//Setup (this can be done once)
var parser = new ClaimsTransformationParser();
var cache = new ClaimsTransformationCache();
var engine = new ClaimsTransformationEngine(parser, cache);

var expression =
  @"C1:[] " +
  @"=> ISSUE(TYPE = ""http://namespace/role"", VALUE = ""Public"");";

//Read these claims from your authentication token.
var input = new Claim[] { };
//Use these claims for your security.
var output = engine.Transform(expression, input);

See the test suite for more examples.

  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.4 76 11/8/2019
0.0.3 70 10/28/2019
0.0.2 70 10/25/2019
0.0.1 94 8/15/2019