-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Support SNI authentication from EnvironmentCredential/DAC #41031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SNI authentication from EnvironmentCredential/DAC #41031
Conversation
When constructing a confidential client, if `AZURE_CLIENT_SEND_CERTIFICATE_CHAIN` is `true` or `1`, send the x5c chain. Fixes Azure#40013
|
API change check API changes are not detected in this pull request. |
g2vinay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature should be supported via DAC / ENV credential only, I believe.
Currently, it will be picked up under Client Cert Credential too.
fixed. |
#30570) ### Packages impacted by this PR @azure/identity ### Issues associated with this PR Resolves #29592 ### Describe the problem that is addressed by this PR SNI authentication is a 1p certificate feature supported by ClientCertificateCredential. In order to implement SNI based auth one has to use ClientCertificateCredential directly instead of DefaultAzureCredential because there's no way to configure sendCertificateChain from DAC. For consistency with other languages, we're adding support for AZURE_CLIENT_SEND_CERTIFICATE_CHAIN as an env var here ### Provide a list of related PRs _(if any)_ Azure/azure-sdk-for-java#41031
When constructing a confidential client, if
AZURE_CLIENT_SEND_CERTIFICATE_CHAINistrueor1, send the x5c chain.Fixes #40013