Git Product home page Git Product logo

Comments (13)

brockallen avatar brockallen commented on May 29, 2024

Possibly. We'll leave this open to discuss.

from identityserver3.wsfederation.

VictorBlomberg avatar VictorBlomberg commented on May 29, 2024

Making the method ValidateAsync in SignInValidator virtual (SignInValidator.cs:40), would allow this functionality using the DI/Registrations feature (while still not making a big fuzz or doing anything that would increase the support burden).

from identityserver3.wsfederation.

VictorBlomberg avatar VictorBlomberg commented on May 29, 2024

Hi,

As it is now SignInValidator is impossible to replace without forking the whole repository, which is a mess. Is there anyway I can elaborate to persuade you to make the change stated above, making ValidateAsync virtual?

Or let SignInValidator implement an ISignInValidator interface?

I would be happy to create a PR if it would be of any help.

(I'm also on gitter in case you want to discuss there)

from identityserver3.wsfederation.

leastprivilege avatar leastprivilege commented on May 29, 2024

What do you want to achieve?

from identityserver3.wsfederation.

leastprivilege avatar leastprivilege commented on May 29, 2024

Sorry I missed the first part.

What would you prefer - an extensibility point or make the validator replaceable (with decent base class) ?

from identityserver3.wsfederation.

VictorBlomberg avatar VictorBlomberg commented on May 29, 2024

(Sorry for the silence!)

Well, for me an extensibility point with subject and realm allowing to allow or deny the subject to the realm would be enough, and thus the easiest for me.

But a replaceable validator would do the job too, still being really simple. It really doesn't matter that much for my use case, both would do a great job.

from identityserver3.wsfederation.

leastprivilege avatar leastprivilege commented on May 29, 2024

ok - will do something. put it on my todo.

from identityserver3.wsfederation.

VictorBlomberg avatar VictorBlomberg commented on May 29, 2024

Wonderful! Just tell me if I can help with anything.

from identityserver3.wsfederation.

leastprivilege avatar leastprivilege commented on May 29, 2024

Well - if you want open a PR with a custom request validator that runs at the end of the internal validator. Similar to the one in core.

from identityserver3.wsfederation.

VictorBlomberg avatar VictorBlomberg commented on May 29, 2024

Sure thing!

from identityserver3.wsfederation.

VictorBlomberg avatar VictorBlomberg commented on May 29, 2024

Hi, should I PR against master or dev?

from identityserver3.wsfederation.

leastprivilege avatar leastprivilege commented on May 29, 2024

dev

from identityserver3.wsfederation.

leastprivilege avatar leastprivilege commented on May 29, 2024

done

from identityserver3.wsfederation.

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.