@@ -345,6 +345,7 @@ public async Task ClientAssertion_BearerAsync()
345345
346346 var handler = http . AddMockHandlerSuccessfulClientCredentialTokenResponseMessage ( ) ;
347347 var cca = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
348+ . WithExperimentalFeatures ( true )
348349 . WithClientSecret ( TestConstants . ClientSecret )
349350 . WithHttpManager ( http )
350351 . WithClientAssertion ( BearerDelegate ( ) )
@@ -373,6 +374,7 @@ public async Task ClientAssertion_WithPoPDelegate_No_Mtls_Api_SendsBearer_Async(
373374 http . AddInstanceDiscoveryMockHandler ( ) ;
374375 var handler = http . AddMockHandlerSuccessfulClientCredentialTokenResponseMessage ( ) ;
375376 var cca = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
377+ . WithExperimentalFeatures ( true )
376378 . WithClientSecret ( TestConstants . ClientSecret )
377379 . WithHttpManager ( http )
378380 . WithClientAssertion ( PopDelegate ( ) )
@@ -399,6 +401,7 @@ public async Task ClientAssertion_ReceivesClientCapabilitiesAsync()
399401
400402 bool checkedCaps = false ;
401403 var cca = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
404+ . WithExperimentalFeatures ( true )
402405 . WithClientSecret ( TestConstants . ClientSecret )
403406 . WithClientCapabilities ( TestConstants . ClientCapabilities )
404407 . WithHttpManager ( http )
@@ -427,6 +430,7 @@ public async Task ClientAssertion_ReceivesClientCapabilitiesAsync()
427430 public async Task ClientAssertion_EmptyJwt_ThrowsAsync ( )
428431 {
429432 var cca = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
433+ . WithExperimentalFeatures ( true )
430434 . WithClientSecret ( TestConstants . ClientSecret )
431435 . WithClientAssertion ( ( o , c ) =>
432436 Task . FromResult ( new ClientSignedAssertion { Assertion = string . Empty } ) )
@@ -443,6 +447,7 @@ public async Task ClientAssertion_CancellationTokenPropagatesAsync()
443447 using var cts = new CancellationTokenSource ( ) ;
444448
445449 var cca = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
450+ . WithExperimentalFeatures ( true )
446451 . WithClientSecret ( TestConstants . ClientSecret )
447452 . WithClientAssertion ( ( o , ct ) =>
448453 {
@@ -481,6 +486,7 @@ public async Task WithMtlsPop_AfterPoPDelegate_Works()
481486 var cert = CertHelper . GetOrCreateTestCert ( ) ;
482487
483488 var app = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
489+ . WithExperimentalFeatures ( true )
484490 . WithClientAssertion ( PopDelegate ( ) )
485491 . WithAuthority ( $ "https://login.microsoftonline.com/123456-1234-2345-1234561234")
486492 . WithAzureRegion ( ConfidentialClientApplication . AttemptRegionDiscovery )
@@ -559,6 +565,7 @@ public async Task PoP_CachedTokenWithDifferentCertificate_IsBypassedAsync()
559565
560566 // ─────────── Build the app ───────────
561567 var cca = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
568+ . WithExperimentalFeatures ( true )
562569 . WithClientSecret ( TestConstants . ClientSecret )
563570 . WithClientAssertion ( popDelegate )
564571 . WithAuthority ( $ "https://login.microsoftonline.com/123456-1234-2345-1234561234")
@@ -591,7 +598,8 @@ public async Task PoP_CachedTokenWithDifferentCertificate_IsBypassedAsync()
591598 public async Task WithMtlsPop_AfterBearerDelegate_Throws ( )
592599 {
593600 var cca = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
594- . WithClientSecret ( TestConstants . ClientSecret )
601+ . WithExperimentalFeatures ( true )
602+ . WithClientSecret ( TestConstants . ClientSecret )
595603 . WithClientAssertion ( BearerDelegate ( ) )
596604 . BuildConcrete ( ) ;
597605
@@ -614,6 +622,7 @@ public async Task ClientAssertion_NotCalledWhenTokenFromCacheAsync()
614622 http . AddMockHandlerSuccessfulClientCredentialTokenResponseMessage ( ) ; // first call => network
615623
616624 var cca = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
625+ . WithExperimentalFeatures ( true )
617626 . WithClientSecret ( TestConstants . ClientSecret )
618627 . WithHttpManager ( http )
619628 . WithClientAssertion ( ( o , c ) =>
@@ -644,6 +653,7 @@ public async Task WithMtlsPop_AfterPoPDelegate_NoRegion_ThrowsAsync()
644653 // Arrange – CCA with PoP delegate (returns JWT + cert) but **no AzureRegion configured**
645654 var cert = CertHelper . GetOrCreateTestCert ( ) ;
646655 var cca = ConfidentialClientApplicationBuilder . Create ( TestConstants . ClientId )
656+ . WithExperimentalFeatures ( true )
647657 . WithClientAssertion ( PopDelegate ( ) )
648658 . WithHttpManager ( http )
649659 . BuildConcrete ( ) ;
0 commit comments