Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 713d3dc

Browse files
committedJul 17, 2020
July 2020 Intermediate Release 1
1 parent 4200777 commit 713d3dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎Commands/Base/PnPConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ internal GenericToken TryGetToken(TokenAudience tokenAudience, string[] orRoles
237237
var scopes = Scopes.Except(officeManagementApiScopes).ToArray();
238238
if (scopes.Length > 0)
239239
{
240-
token = PSCredential == null ? GraphToken.AcquireApplicationTokenInteractive(DeviceLoginClientId, Scopes) : GraphToken.AcquireDelegatedTokenWithCredentials(DeviceLoginClientId, scopes, PSCredential.UserName, PSCredential.Password);
240+
token = PSCredential == null ? GraphToken.AcquireApplicationTokenInteractive(DeviceLoginClientId, scopes) : GraphToken.AcquireDelegatedTokenWithCredentials(DeviceLoginClientId, scopes, PSCredential.UserName, PSCredential.Password);
241241
}
242242
else
243243
{
@@ -265,7 +265,7 @@ internal GenericToken TryGetToken(TokenAudience tokenAudience, string[] orRoles
265265
// Take the remaining scopes and try requesting them from the Microsoft Graph API
266266
if (scopes.Length > 0)
267267
{
268-
token = PSCredential == null ? OfficeManagementApiToken.AcquireApplicationTokenInteractive(DeviceLoginClientId, Scopes) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(DeviceLoginClientId, scopes, PSCredential.UserName, PSCredential.Password);
268+
token = PSCredential == null ? OfficeManagementApiToken.AcquireApplicationTokenInteractive(DeviceLoginClientId, scopes) : OfficeManagementApiToken.AcquireDelegatedTokenWithCredentials(DeviceLoginClientId, scopes, PSCredential.UserName, PSCredential.Password);
269269
}
270270
else
271271
{

0 commit comments

Comments
 (0)
This repository has been archived.