@@ -170,7 +170,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
170170 azDevOpsMock . Setup ( x => x . GetAuthorityAsync ( expectedOrgUri ) ) . ReturnsAsync ( authorityUrl ) ;
171171
172172 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 ) )
174174 . ReturnsAsync ( authResult ) ;
175175
176176 var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -219,7 +219,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
219219 azDevOpsMock . Setup ( x => x . GetAuthorityAsync ( expectedOrgUri ) ) . ReturnsAsync ( authorityUrl ) ;
220220
221221 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 ) )
223223 . ReturnsAsync ( authResult ) ;
224224
225225 var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -268,7 +268,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
268268 azDevOpsMock . Setup ( x => x . GetAuthorityAsync ( expectedOrgUri ) ) . ReturnsAsync ( authorityUrl ) ;
269269
270270 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 ) )
272272 . ReturnsAsync ( authResult ) ;
273273
274274 var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -315,7 +315,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
315315 var azDevOpsMock = new Mock < IAzureDevOpsRestApi > ( MockBehavior . Strict ) ;
316316
317317 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 ) )
319319 . ReturnsAsync ( authResult ) ;
320320
321321 var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -363,7 +363,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_CachedAuthority_
363363 var azDevOpsMock = new Mock < IAzureDevOpsRestApi > ( MockBehavior . Strict ) ;
364364
365365 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 ) )
367367 . ReturnsAsync ( authResult ) ;
368368
369369 var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -413,7 +413,7 @@ public async Task AzureReposProvider_GetCredentialAsync_JwtMode_NoCachedAuthorit
413413 azDevOpsMock . Setup ( x => x . GetAuthorityAsync ( expectedOrgUri ) ) . ReturnsAsync ( authorityUrl ) ;
414414
415415 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 ) )
417417 . ReturnsAsync ( authResult ) ;
418418
419419 var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
@@ -462,7 +462,7 @@ public async Task AzureReposProvider_GetCredentialAsync_PatMode_NoExistingPat_Ge
462462 . ReturnsAsync ( personalAccessToken ) ;
463463
464464 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 ) )
466466 . ReturnsAsync ( authResult ) ;
467467
468468 var authorityCacheMock = new Mock < IAzureDevOpsAuthorityCache > ( MockBehavior . Strict ) ;
0 commit comments