diff --git a/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs b/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs index d96506f86c78d..3dbb3e27e78af 100644 --- a/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs +++ b/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs @@ -68,7 +68,7 @@ public partial class ClientCertificateCredentialOptions : Azure.Identity.TokenCr public ClientCertificateCredentialOptions() { } public bool AllowUnencryptedCache { get { throw null; } set { } } public bool EnablePersistentCache { get { throw null; } set { } } - public bool IncludeX5CCliamHeader { get { throw null; } set { } } + public bool IncludeX5CClaimHeader { get { throw null; } set { } } } public partial class ClientSecretCredential : Azure.Core.TokenCredential { diff --git a/sdk/identity/Azure.Identity/src/ClientCertificateCredential.cs b/sdk/identity/Azure.Identity/src/ClientCertificateCredential.cs index 9d40938435043..3a300117e136f 100644 --- a/sdk/identity/Azure.Identity/src/ClientCertificateCredential.cs +++ b/sdk/identity/Azure.Identity/src/ClientCertificateCredential.cs @@ -133,7 +133,7 @@ internal ClientCertificateCredential(string tenantId, string clientId, IX509Cert _pipeline = pipeline ?? CredentialPipeline.GetInstance(options); - _client = client ?? new MsalConfidentialClient(_pipeline, tenantId, clientId, certificateProvider, (options as ClientCertificateCredentialOptions)?.IncludeX5CCliamHeader ?? false, options as ITokenCacheOptions); + _client = client ?? new MsalConfidentialClient(_pipeline, tenantId, clientId, certificateProvider, (options as ClientCertificateCredentialOptions)?.IncludeX5CClaimHeader ?? false, options as ITokenCacheOptions); } /// diff --git a/sdk/identity/Azure.Identity/src/ClientCertificateCredentialOptions.cs b/sdk/identity/Azure.Identity/src/ClientCertificateCredentialOptions.cs index 94453e7e30422..c782f78d92997 100644 --- a/sdk/identity/Azure.Identity/src/ClientCertificateCredentialOptions.cs +++ b/sdk/identity/Azure.Identity/src/ClientCertificateCredentialOptions.cs @@ -22,6 +22,6 @@ public class ClientCertificateCredentialOptions : TokenCredentialOptions, IToken /// /// Will include x5c header to enable subject name / issuer based authentication for the . /// - public bool IncludeX5CCliamHeader { get; set; } + public bool IncludeX5CClaimHeader { get; set; } } } diff --git a/sdk/identity/Azure.Identity/tests/ClientCertificateCredentialLiveTests.cs b/sdk/identity/Azure.Identity/tests/ClientCertificateCredentialLiveTests.cs index b5d3a965a8f6c..d1c8139fa51c3 100644 --- a/sdk/identity/Azure.Identity/tests/ClientCertificateCredentialLiveTests.cs +++ b/sdk/identity/Azure.Identity/tests/ClientCertificateCredentialLiveTests.cs @@ -102,13 +102,13 @@ public async Task FromX509Certificate2() } [Test] - public async Task IncludeX5CCliamHeader() + public async Task IncludeX5CClaimHeader() { var tenantId = TestEnvironment.ServicePrincipalTenantId; var clientId = TestEnvironment.ServicePrincipalClientId; var certPath = TestEnvironment.ServicePrincipalSniCertificatePath; - var options = InstrumentClientOptions(new ClientCertificateCredentialOptions { IncludeX5CCliamHeader = true }); + var options = InstrumentClientOptions(new ClientCertificateCredentialOptions { IncludeX5CClaimHeader = true }); var credential = new ClientCertificateCredential(tenantId, clientId, certPath, options); diff --git a/sdk/identity/Azure.Identity/tests/SessionRecords/ClientCertificateCredentialLiveTests/IncludeX5CCliamHeader.json b/sdk/identity/Azure.Identity/tests/SessionRecords/ClientCertificateCredentialLiveTests/IncludeX5CClaimHeader.json similarity index 100% rename from sdk/identity/Azure.Identity/tests/SessionRecords/ClientCertificateCredentialLiveTests/IncludeX5CCliamHeader.json rename to sdk/identity/Azure.Identity/tests/SessionRecords/ClientCertificateCredentialLiveTests/IncludeX5CClaimHeader.json diff --git a/sdk/identity/Azure.Identity/tests/SessionRecords/ClientCertificateCredentialLiveTests/IncludeX5CCliamHeaderAsync.json b/sdk/identity/Azure.Identity/tests/SessionRecords/ClientCertificateCredentialLiveTests/IncludeX5CClaimHeaderAsync.json similarity index 100% rename from sdk/identity/Azure.Identity/tests/SessionRecords/ClientCertificateCredentialLiveTests/IncludeX5CCliamHeaderAsync.json rename to sdk/identity/Azure.Identity/tests/SessionRecords/ClientCertificateCredentialLiveTests/IncludeX5CClaimHeaderAsync.json