diff --git a/src/lib/CHANGELOG.md b/src/lib/CHANGELOG.md index af1439efb..26fc95ec0 100644 --- a/src/lib/CHANGELOG.md +++ b/src/lib/CHANGELOG.md @@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). +## [Unreleased] + +### Added + +- Support for using Managed Identity with PnP Framework #1002 [koenzomers - Koen Zomers] + +### Changed + ## [1.15.0] ### Added diff --git a/src/lib/PnP.Framework/AuthenticationManager.cs b/src/lib/PnP.Framework/AuthenticationManager.cs index 102fd9f6e..a26a74821 100644 --- a/src/lib/PnP.Framework/AuthenticationManager.cs +++ b/src/lib/PnP.Framework/AuthenticationManager.cs @@ -1577,7 +1577,7 @@ private string GetManagedIdentityToken(string audience) Diagnostics.Log.Debug(Constants.LOGGING_SOURCE, $"Sending managed identity token request to {tokenRequestUrl}"); - var response = new HttpClient().SendAsync(requestMessage).GetAwaiter().GetResult(); + var response = PnPHttpClient.Instance.GetHttpClient().SendAsync(requestMessage).GetAwaiter().GetResult(); if (response.IsSuccessStatusCode) {