Open
Description
I am in the process of trying to configure an OpenApiOAuthFlows
(for oauth clientcredentials) and was hoping to be able to access configuration (or maybe even other services), but it does not seem to be supported through constructor injection or in any alternative approaches. The error from attempting constructor injection is simply No parameterless constructor defined for type
.
Is there an approach I am missing, is dependency injection planned, or is there a recommended workaround? (I am guessing reading environment variables directly is a somewhat reasonably approach, if not as nice or flexible as IConfiguration)