Lokulus / ClaimsTransformation

An implementation of the ADFS claims transformation language for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:C# 100.0%