Skip to content

An implementation of the ADFS claims transformation language for .NET

License

Notifications You must be signed in to change notification settings

pudding-fox/ClaimsTransformation

 
 

Repository files navigation

ClaimsTransformation

An implementation of the ADFS claims transformation language for .NET

Some informations exist;

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.

About

An implementation of the ADFS claims transformation language for .NET

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%