Skip to content

Commit

Permalink
Merge of #1002. Thanks @KoenZomers
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenbe committed Apr 11, 2024
1 parent f40c286 commit ee8ac48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib/PnP.Framework/AuthenticationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit ee8ac48

Please sign in to comment.