Giter VIP home page Giter VIP logo

Comments (5)

leastprivilege avatar leastprivilege commented on August 28, 2024

yay ;)

from security.

Tratcher avatar Tratcher commented on August 28, 2024

@leastprivilege Any recommendations for the lowest-common-denominator claims transformer? Action<ClaimsIdentity>?

from security.

leastprivilege avatar leastprivilege commented on August 28, 2024

ClaimsPrincipal rather - you want the transformer to have a look at all identities and be able to create a completely new principal -

see here: https://github.com/thinktecture/Thinktecture.IdentityModel/blob/master/source/Thinktecture.IdentityModel.Owin.ClaimsTransformation/ClaimsTransformationOptions.cs

from security.

brentschmaltz avatar brentschmaltz commented on August 28, 2024

I agree we need a single point to evaluate what the 'user' should look like when all of the AuthenticationMiddleware (s) have completed. Since the ISecurityTokenValidator returns a ClaimsPrincipal and is configurable by the user, we need to maintain the object the user returned.

The AuthenticationHandler returns an AuthenticationTicket, if this is preserved and accessible then this would allow complete extensibility.

from security.

HaoK avatar HaoK commented on August 28, 2024

Discussed as part of the AuthN changes, going to go with a ClaimsTransformationMiddleware which uses a ClaimsTransformationOptions to:

1: Apply transformation to the HttpContext.User as part of the pipeline
2. Also hooks any calls to HttpContext.AuthenticateAsync to apply transformation before returning the resultant identity

from security.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.