@@ -170,7 +170,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
170
170
azDevOpsMock . Setup ( x => x . GetAuthorityAsync ( expectedOrgUri ) ) . ReturnsAsync ( authorityUrl ) ;
171
171
172
172
var msAuthMock = new Mock < IMicrosoftAuthentication > ( MockBehavior . Strict ) ;
173
- msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , urlAccount ) )
173
+ msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , urlAccount , true ) )
174
174
. ReturnsAsync ( authResult ) ;
175
175
176
176
var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -219,7 +219,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
219
219
azDevOpsMock . Setup ( x => x . GetAuthorityAsync ( expectedOrgUri ) ) . ReturnsAsync ( authorityUrl ) ;
220
220
221
221
var msAuthMock = new Mock < IMicrosoftAuthentication > ( MockBehavior . Strict ) ;
222
- msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , urlAccount ) )
222
+ msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , urlAccount , true ) )
223
223
. ReturnsAsync ( authResult ) ;
224
224
225
225
var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -268,7 +268,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
268
268
azDevOpsMock . Setup ( x => x . GetAuthorityAsync ( expectedOrgUri ) ) . ReturnsAsync ( authorityUrl ) ;
269
269
270
270
var msAuthMock = new Mock < IMicrosoftAuthentication > ( MockBehavior . Strict ) ;
271
- msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , null ) )
271
+ msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , null , true ) )
272
272
. ReturnsAsync ( authResult ) ;
273
273
274
274
var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -315,7 +315,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
315
315
var azDevOpsMock = new Mock < IAzureDevOpsRestApi > ( MockBehavior . Strict ) ;
316
316
317
317
var msAuthMock = new Mock < IMicrosoftAuthentication > ( MockBehavior . Strict ) ;
318
- msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , null ) )
318
+ msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , null , true ) )
319
319
. ReturnsAsync ( authResult ) ;
320
320
321
321
var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -363,7 +363,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
363
363
var azDevOpsMock = new Mock < IAzureDevOpsRestApi > ( MockBehavior . Strict ) ;
364
364
365
365
var msAuthMock = new Mock < IMicrosoftAuthentication > ( MockBehavior . Strict ) ;
366
- msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , account ) )
366
+ msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , account , true ) )
367
367
. ReturnsAsync ( authResult ) ;
368
368
369
369
var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -413,7 +413,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_NoCachedAuthorit
413
413
azDevOpsMock . Setup ( x => x . GetAuthorityAsync ( expectedOrgUri ) ) . ReturnsAsync ( authorityUrl ) ;
414
414
415
415
var msAuthMock = new Mock < IMicrosoftAuthentication > ( MockBehavior . Strict ) ;
416
- msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , null ) )
416
+ msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , null , true ) )
417
417
. ReturnsAsync ( authResult ) ;
418
418
419
419
var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -462,7 +462,7 @@ public async Task AzureReposProvider_GetCredentialAsync_PatMode_NoExistingPat_Ge
462
462
. ReturnsAsync ( personalAccessToken ) ;
463
463
464
464
var msAuthMock = new Mock < IMicrosoftAuthentication > ( MockBehavior . Strict ) ;
465
- msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , null ) )
465
+ msAuthMock . Setup ( x => x . GetTokenAsync ( authorityUrl , expectedClientId , expectedRedirectUri , expectedScopes , null , true ) )
466
466
. ReturnsAsync ( authResult ) ;
467
467
468
468
var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
0 commit comments