aspnet / MicrosoftConfigurationBuilders

Microsoft.Configuration.Builders
MIT License
118 stars 61 forks source link

Expose SecretClientOptions to be set by a derived class in AzureKeyVaultConfigBuilder #201

Closed benvanderlinde closed 1 year ago

benvanderlinde commented 2 years ago

We have a specific scenario where we would like to use the AKV config builder, but we are operating behind a proxy server.

The rules for which http calls need to traverse a proxy vs calls that do not, are complex and difficult to capture using a 'proxy bypass list' configured in the web.config, so it's preferable to make these decisions in app code.

Exposing the SecretCllientOptions in-conjunction with the TokenCredential (via GetCredential(0)), allows the pipeline transport to be configured to use a proxy.

StephenMolloy commented 1 year ago

207