From 8ef716fd215a25d127ced98478d07eae6f9644e1 Mon Sep 17 00:00:00 2001 From: Rodel Pacurib Date: Thu, 17 Aug 2023 13:13:56 -0700 Subject: [PATCH] Fix bug #3350 Do not display access token --- src/Commands/Base/TokenHandling.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/Base/TokenHandling.cs b/src/Commands/Base/TokenHandling.cs index 6cf1cbedf..77baa28b2 100644 --- a/src/Commands/Base/TokenHandling.cs +++ b/src/Commands/Base/TokenHandling.cs @@ -81,7 +81,7 @@ internal static string GetAccessToken(Cmdlet cmdlet, string appOnlyDefaultScope, cmdlet.WriteVerbose($"Acquiring oAuth token for {(requiredScopes.Length != 1 ? requiredScopes.Length + " " : "")}permission scope{(requiredScopes.Length != 1 ? "s" : "")} {string.Join(",", requiredScopes)}"); var accessToken = authManager.GetAccessTokenAsync(requiredScopes).GetAwaiter().GetResult(); - cmdlet.WriteVerbose($"Access token acquired: {accessToken}"); + cmdlet.WriteVerbose($"Access token acquired"); return accessToken; } return null;