Skip to content

Commit 86f0651

Browse files
committed
Updated LaunchBrowser UI
1 parent cc41e76 commit 86f0651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/Base/PnPConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ internal static PnPConnection CreateWithDeviceLogin(string clientId, string url,
266266
authManager = Framework.AuthenticationManager.CreateWithDeviceLogin(clientId, tenantId, (deviceCodeResult) =>
267267
{
268268
if (launchBrowser)
269-
{
269+
{
270270
ClipboardService.SetText(deviceCodeResult.UserCode);
271271
messageWriter.WriteWarning($"\n\nCode {deviceCodeResult.UserCode} has been copied to your clipboard and a new tab in the browser has been opened. Please paste this code in there and proceed.\n\n");
272272
BrowserHelper.OpenBrowserForInteractiveLogin(deviceCodeResult.VerificationUrl, BrowserHelper.FindFreeLocalhostRedirectUri(), false, cancellationTokenSource);
@@ -640,7 +640,7 @@ internal static PnPConnection CreateWithInteractiveLogin(Uri uri, string clientI
640640
}
641641
using (authManager)
642642
{
643-
var clientContext = authManager.GetContext(uri.ToString(), cancellationTokenSource.Token);
643+
var clientContext = authManager.GetContext(uri.ToString(), cancellationTokenSource.Token, "PnP PowerShell", "https://pnp.github.io/powershell");
644644
var context = PnPClientContext.ConvertFrom(clientContext);
645645
context.ExecutingWebRequest += (sender, e) =>
646646
{

0 commit comments

Comments
 (0)