diff --git a/CHANGELOG.md b/CHANGELOG.md index c4a453c..98cf446 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +## [1.0.3] - 2023-06-26 + +### Changed + +- Fix unwanted scopes collection modification in AzureIdentityAccessTokenProvider ([#73]([https://github.com/microsoft/kiota-authentication-azure-dotnet/issues/93])). +- Add missing ConfigureAwait(false) to GetTokenAsync call. +- Replaced true/false values in SetTag method calls with pre-initialized values to prevent boxing. + ## [1.0.2] - 2023-03-24 ### Changed diff --git a/src/AzureIdentityAccessTokenProvider.cs b/src/AzureIdentityAccessTokenProvider.cs index 25cd9e4..4077d69 100644 --- a/src/AzureIdentityAccessTokenProvider.cs +++ b/src/AzureIdentityAccessTokenProvider.cs @@ -18,6 +18,9 @@ namespace Microsoft.Kiota.Authentication.Azure; /// public class AzureIdentityAccessTokenProvider : IAccessTokenProvider, IDisposable { + private static readonly object BoxedTrue = true; + private static readonly object BoxedFalse = false; + private readonly TokenCredential _credential; private readonly ActivitySource _activitySource; private readonly HashSet _scopes; @@ -52,33 +55,37 @@ public async Task GetAuthorizationTokenAsync(Uri uri, Dictionary public void Dispose() { diff --git a/src/Microsoft.Kiota.Authentication.Azure.csproj b/src/Microsoft.Kiota.Authentication.Azure.csproj index 5933d98..2443295 100644 --- a/src/Microsoft.Kiota.Authentication.Azure.csproj +++ b/src/Microsoft.Kiota.Authentication.Azure.csproj @@ -14,7 +14,7 @@ https://microsoft.github.io/kiota/ true true - 1.0.2 + 1.0.3 true true