From 29d61bcb798aee9e850d30d128f52d0e5f65ed10 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Mon, 6 Nov 2023 17:28:12 -0600 Subject: [PATCH] prepare for release of Azure.Identity.Broker (#39767) --- sdk/identity/Azure.Identity.Broker/CHANGELOG.md | 9 ++------- sdk/identity/Azure.Identity.Broker/README.md | 2 +- .../api/Azure.Identity.Broker.net6.0.cs | 2 +- .../api/Azure.Identity.Broker.netstandard2.0.cs | 2 +- .../src/Azure.Identity.Broker.csproj | 2 +- .../src/SharedTokenCacheCredentialBrokerOptions.cs | 6 +++--- .../SharedTokenCacheCredentialBrokerOptionsTests.cs | 2 +- 7 files changed, 10 insertions(+), 15 deletions(-) diff --git a/sdk/identity/Azure.Identity.Broker/CHANGELOG.md b/sdk/identity/Azure.Identity.Broker/CHANGELOG.md index 71db7a6b6e4d7..57f7e411834a3 100644 --- a/sdk/identity/Azure.Identity.Broker/CHANGELOG.md +++ b/sdk/identity/Azure.Identity.Broker/CHANGELOG.md @@ -1,14 +1,9 @@ # Release History -## 1.0.0-beta.6 (Unreleased) - -### Features Added +## 1.0.0 (2023-11-07) ### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Renamed the `IsMsaPassthroughEnabled` property on `SharedTokenCacheCredentialBrokerOptions` to `IsLegacyMsaPassthroughEnabled`. ## 1.0.0-beta.5 (2023-10-19) diff --git a/sdk/identity/Azure.Identity.Broker/README.md b/sdk/identity/Azure.Identity.Broker/README.md index d4ee070dd4f01..e2987a1927514 100644 --- a/sdk/identity/Azure.Identity.Broker/README.md +++ b/sdk/identity/Azure.Identity.Broker/README.md @@ -10,7 +10,7 @@ Install the Azure Identity client library for .NET with [NuGet][nuget]: ```PowerShell -dotnet add package Azure.Identity.Broker --prerelease +dotnet add package Azure.Identity.Broker ``` ### Prerequisites diff --git a/sdk/identity/Azure.Identity.Broker/api/Azure.Identity.Broker.net6.0.cs b/sdk/identity/Azure.Identity.Broker/api/Azure.Identity.Broker.net6.0.cs index 78724c918f03d..72249967df33d 100644 --- a/sdk/identity/Azure.Identity.Broker/api/Azure.Identity.Broker.net6.0.cs +++ b/sdk/identity/Azure.Identity.Broker/api/Azure.Identity.Broker.net6.0.cs @@ -9,6 +9,6 @@ public partial class SharedTokenCacheCredentialBrokerOptions : Azure.Identity.Sh { public SharedTokenCacheCredentialBrokerOptions() { } public SharedTokenCacheCredentialBrokerOptions(Azure.Identity.TokenCachePersistenceOptions tokenCacheOptions) { } - public bool? IsMsaPassthroughEnabled { get { throw null; } set { } } + public bool? IsLegacyMsaPassthroughEnabled { get { throw null; } set { } } } } diff --git a/sdk/identity/Azure.Identity.Broker/api/Azure.Identity.Broker.netstandard2.0.cs b/sdk/identity/Azure.Identity.Broker/api/Azure.Identity.Broker.netstandard2.0.cs index 78724c918f03d..72249967df33d 100644 --- a/sdk/identity/Azure.Identity.Broker/api/Azure.Identity.Broker.netstandard2.0.cs +++ b/sdk/identity/Azure.Identity.Broker/api/Azure.Identity.Broker.netstandard2.0.cs @@ -9,6 +9,6 @@ public partial class SharedTokenCacheCredentialBrokerOptions : Azure.Identity.Sh { public SharedTokenCacheCredentialBrokerOptions() { } public SharedTokenCacheCredentialBrokerOptions(Azure.Identity.TokenCachePersistenceOptions tokenCacheOptions) { } - public bool? IsMsaPassthroughEnabled { get { throw null; } set { } } + public bool? IsLegacyMsaPassthroughEnabled { get { throw null; } set { } } } } diff --git a/sdk/identity/Azure.Identity.Broker/src/Azure.Identity.Broker.csproj b/sdk/identity/Azure.Identity.Broker/src/Azure.Identity.Broker.csproj index ecffaeed9a809..8644b5bee457b 100644 --- a/sdk/identity/Azure.Identity.Broker/src/Azure.Identity.Broker.csproj +++ b/sdk/identity/Azure.Identity.Broker/src/Azure.Identity.Broker.csproj @@ -2,7 +2,7 @@ This is the implementation of the Azure SDK Client Library for Azure Identity Microsoft Azure.Identity.Broker Component - 1.0.0-beta.6 + 1.0.0 Microsoft Azure Identity Broker;$(PackageCommonTags) $(RequiredTargetFrameworks);net462;net6.0 $(RequiredTargetFrameworks);net6.0 diff --git a/sdk/identity/Azure.Identity.Broker/src/SharedTokenCacheCredentialBrokerOptions.cs b/sdk/identity/Azure.Identity.Broker/src/SharedTokenCacheCredentialBrokerOptions.cs index 1c26d2e00b688..82259861778c2 100644 --- a/sdk/identity/Azure.Identity.Broker/src/SharedTokenCacheCredentialBrokerOptions.cs +++ b/sdk/identity/Azure.Identity.Broker/src/SharedTokenCacheCredentialBrokerOptions.cs @@ -16,7 +16,7 @@ public class SharedTokenCacheCredentialBrokerOptions : SharedTokenCacheCredentia /// Gets or sets whether Microsoft Account (MSA) passthrough is enabled. /// /// - public bool? IsMsaPassthroughEnabled { get; set; } + public bool? IsLegacyMsaPassthroughEnabled { get; set; } /// /// Initializes a new instance of . @@ -39,9 +39,9 @@ public SharedTokenCacheCredentialBrokerOptions(TokenCachePersistenceOptions toke private void AddBroker(PublicClientApplicationBuilder builder) { var options = new BrokerOptions(BrokerOptions.OperatingSystems.Windows); - if (IsMsaPassthroughEnabled.HasValue) + if (IsLegacyMsaPassthroughEnabled.HasValue) { - options.MsaPassthrough = IsMsaPassthroughEnabled.Value; + options.MsaPassthrough = IsLegacyMsaPassthroughEnabled.Value; } builder.WithBroker(options); } diff --git a/sdk/identity/Azure.Identity.Broker/tests/SharedTokenCacheCredentialBrokerOptionsTests.cs b/sdk/identity/Azure.Identity.Broker/tests/SharedTokenCacheCredentialBrokerOptionsTests.cs index 29948d89197c0..96292c3df5a32 100644 --- a/sdk/identity/Azure.Identity.Broker/tests/SharedTokenCacheCredentialBrokerOptionsTests.cs +++ b/sdk/identity/Azure.Identity.Broker/tests/SharedTokenCacheCredentialBrokerOptionsTests.cs @@ -27,7 +27,7 @@ public void RespectsMsaPassthrough([Values(true, false, null)] bool? enableMsaPa IMsalPublicClientInitializerOptions credentialOptions; if (enableMsaPassthrough.HasValue) { - credentialOptions = new SharedTokenCacheCredentialBrokerOptions { IsMsaPassthroughEnabled = enableMsaPassthrough.Value }; + credentialOptions = new SharedTokenCacheCredentialBrokerOptions { IsLegacyMsaPassthroughEnabled = enableMsaPassthrough.Value }; } else {