Closed CDargis closed 7 years ago
This seems to be a general question about IdentityServer - not a bug report or an issue.
Please use StackOverflow for that. This has the advantage that questions and answers can be easily found by search engines, and that there are more people answering questions than just us.
For IdentityServer3 https://stackoverflow.com/questions/tagged/?tagnames=identityserver3&sort=newest
For IdentityServer4 https://stackoverflow.com/questions/tagged/?tagnames=identityserver4&sort=newest
For commercial support https://identityserver.io/
I'm working with 3 of the optional service factories here: https://identityserver.github.io/Documentation/docsv2/configuration/serviceFactory.html
I am in a couple scenarios where in some cases I want my own implementation of a factory to be used while in other cases I'd like to fall through to the default implementation. Right now since all of the types needed to instantiate the default implementations are registered within the DI container, I have the ability to simply subclass and have something like the following:
I'd like something different, like just taking a single object if possible (other suggestions also welcome!):
I've tried doing the above but the DI container doesn't know how to hand the
DefaultTokenService
to my class. Is something like this possible?