From 0d01f6813c22be0965b9220841b5953f4bae8974 Mon Sep 17 00:00:00 2001 From: dohly <1271285+dohly@users.noreply.github.com> Date: Tue, 21 May 2024 14:17:04 +0500 Subject: [PATCH] we should specify URL, otherwise it will throw NRE --- src/lib/PnP.Framework/AuthenticationManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/PnP.Framework/AuthenticationManager.cs b/src/lib/PnP.Framework/AuthenticationManager.cs index d5c9481db..c2b6aa446 100644 --- a/src/lib/PnP.Framework/AuthenticationManager.cs +++ b/src/lib/PnP.Framework/AuthenticationManager.cs @@ -899,7 +899,7 @@ public async Task GetAccessTokenAsync(string[] scopes, CancellationToken { throw new ArgumentException($"{nameof(GetAccessTokenAsync)}() called without an ACS token generator. Specify in {nameof(AuthenticationManager)} constructor the authentication parameters"); } - return acsTokenGenerator.GetToken(null); + return acsTokenGenerator.GetToken(uri); } case ClientContextType.AccessToken: {