You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would deserialize the section as a Dictionary<string, DownstreamApiOptions>, register the DownstreamApi service, and keep the Options in named options.
jmprieur
changed the title
[Feature Request] Add a method to read a section with Downstream apis (.AddDownstreamApis(section name))
[Feature Request] Add a method to read a section with Downstream apis (.AddDownstreamApis(IConfigurationSection))
Apr 21, 2024
Why?
As developers use more IDownstreamApi, standardize the description of a collection of Downstream APIs, and register them all at once.
In the appsettings.json, customers could describe their APIs in a particular section, and Microsoft.Identity.Web should be able to add them all.
What?
Have an API, in DownstreamApiExtensions that takes a
IConfigurationSection
This would deserialize the section as a Dictionary<string, DownstreamApiOptions>, register the DownstreamApi service, and keep the Options in named options.
P2: Also add a method:
How
Dictionary<string, DownstreamApiOptions> dictionaryOfDownstreamApiOptionsByServiceName;
The text was updated successfully, but these errors were encountered: