This repository has been archived by the owner. It is now read-only.
Claims Transformation Middleware for OWIN/Katana
Switch branches/tags
Nothing to show
Clone or download
Latest commit bfb4a25 Sep 6, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
source updated nuspec Sep 6, 2015
.gitignore added build script Sep 6, 2015
LICENSE Initial commit Sep 2, 2015
README.md updated readme Sep 6, 2015
appveyor.yml add appveyor yaml Sep 6, 2015
build.ps1 added build script Sep 6, 2015
default.ps1 added build script Sep 6, 2015

README.md

Claims Transformation Middleware for OWIN/Katana

Nuget: IdentityModel.Owin.ClaimsTransformation

app.UseClaimsTransformation(incoming =>
    {
        // either add claims to incoming, or create new principal
        var appPrincipal = new ClaimsPrincipal(incoming);
        incoming.Identities.First().AddClaim(new Claim("appSpecific", "some_value"));

        return Task.FromResult(appPrincipal);
    });