Skip to content

Lokulus/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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages