azure-functions-openapi-extension icon indicating copy to clipboard operation
azure-functions-openapi-extension copied to clipboard

Add ability to dynamically configure IOpenApiHttpTriggerAuthorization and inject them at runtime

Open jackbatzner opened this issue 2 years ago • 0 comments

Describe the issue Similar to #430, I have a need to be able to dynamically generate the IOpenApiConfigurationOptions at runtime as opposed to using a concrete class such as DefaultOpenApiHttpTriggerAuthorization or one based on it.

Example:

services.AddSingleton<IOpenApiHttpTriggerAuthorization, SampleOpenApiHttpTriggerAuthorization>();

Additional context I think this would be a great addition that could be utilized by many people!

jackbatzner avatar May 12 '22 01:05 jackbatzner