Giter VIP home page Giter VIP logo

Comments (11)

HaoK avatar HaoK commented on August 28, 2024

@PinpointTownes does your PR address everything here?

from security.

kevinchalet avatar kevinchalet commented on August 28, 2024

@HaoK not really. This ticket was about unifying I*AuthenticationProvider and *AuthenticationNotifications, but I*AuthenticationProvider has since been replaced by I*AuthenticationNotifications.

The question is now: do we want to have...

The first approach is definitely less DRY but seems more flexible and allows advanced scenarios like interface interception via Dynamic Proxy.

from security.

Tratcher avatar Tratcher commented on August 28, 2024

I recommend the second approach. It's much cleaner and I have never seen anyone utilize the extensibility provided by the first approach.

from security.

kevinchalet avatar kevinchalet commented on August 28, 2024

@Tratcher here's a sample of subclassing a default *AuthenticationProvider class: https://github.com/aspnet-contrib/AspNet.Security.OpenIdConnect.Server/blob/vNext/samples/Mvc/Mvc.Server/Providers/AuthorizationProvider.cs#L11

Overriding a method is much cleaner than assigning a delegate.

from security.

analogrelay avatar analogrelay commented on August 28, 2024

@HaoK We need to do design on this. @glennc can assign an existing design meeting slot for this.

from security.

kevinchalet avatar kevinchalet commented on August 28, 2024

Do we finally have an agreement on the definitive notification pattern?

(related topic: IdentityServer/IdentityServer3#1437)

from security.

Tratcher avatar Tratcher commented on August 28, 2024

Nope...

from security.

Tratcher avatar Tratcher commented on August 28, 2024

Notes:

  • Rename *Notifications -> Events
  • Change OIDC notifications -> use the I*Notifications pattern (see cookies)
  • Move all of the OIDC base notification objects from Authentication/Notifications to ODIC/Notifications, squash the generic. Rename to *Context.
  • Rename OAuthBearer to OAuthJWTBearer or something similar? Its not generic bearer, it’s JWT IdentityModel bearer.

I’ll file separate bugs for these.

from security.

Tratcher avatar Tratcher commented on August 28, 2024

Filed #413 for OAuthBearer. The others are all interrelated and can be handled together as part of this #.

from security.

kevinchalet avatar kevinchalet commented on August 28, 2024

Nice! πŸ‘

from security.

Tratcher avatar Tratcher commented on August 28, 2024

Related: #307

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.