Giter Club home page Giter Club logo

Comments (8)

brockallen avatar brockallen commented on May 29, 2024 2

Hi @CoderNumber1 -- In our next release we have opened up our response generation to be extensible to allow thing like your request:

#1342

from identityserver.

brockallen avatar brockallen commented on May 29, 2024 1

Well, we were going to wait until we got feedback. So that's a start. Have a deeper look and provide some ideas on how we would need to change it so you can extend what you need/want to.

from identityserver.

CoderNumber1 avatar CoderNumber1 commented on May 29, 2024

@brockallen fantastic timing! We'll be keeping a close eye on 7.0 then!

I was looking over the changes in that PR, and I have a follow-up question. Looking at the current default IEndpointResultGenerator<AuthorizeResult> implementation it would still be an internal class as of right now. Meaning we could inject our own IEndpointResultGenerator<AuthorizeResult>, but we would need to duplicate the entirety of the behavior that the current default exhibits in order to override the subset that returns the form post response.

Are there any plans to make that a public class, and possibly make some of the currently private methods protected virtual, such as GetFormPostHtml?

from identityserver.

josephdecock avatar josephdecock commented on May 29, 2024

@CoderNumber1 - any further thoughts on what you'd like to be able to extend in the result generators?

from identityserver.

CoderNumber1 avatar CoderNumber1 commented on May 29, 2024

My apologies, I've been buried and this fell off my radar.

In particular all I really need is to be able to extend on the current AuthorizeResultGenerator is the GetFormPostHtml(AuthorizeResponse response) method. I don't even really need to be able to override the entirety of the response, just inject additional content for the body of the page. If that method were protected virtual instead of private I could just inherit from the existing implementation and override the one method. This would save me from having to implement the entirety of IEndpointResultGenerator<AuthorizeResult> for a change to one type of response it generates.

What we're really after at the end of the day is to place our logo and a message into the body of that html so that the user sees something besides a blank page while they're waiting on the target application to load if it's slow in responding.

from identityserver.

josephdecock avatar josephdecock commented on May 29, 2024

No problem @CoderNumber1 - we appreciate your feedback!

@brockallen, let's discuss this.

from identityserver.

brockallen avatar brockallen commented on May 29, 2024

Yea, I guess we could add nop virtuals for things like AddHtmlHead and AddHtmlBody. Is this the kind of thing you're looking for @CoderNumber1?

from identityserver.

CoderNumber1 avatar CoderNumber1 commented on May 29, 2024

Yeah I think that might give us what we're looking for.

from identityserver.

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.