@@ -27,7 +27,7 @@ def _get_app_and_auth_code(
2727 app = msal .ConfidentialClientApplication (
2828 client_id ,
2929 client_credential = client_secret ,
30- authority = authority , http_client = MinimalHttpClient (timeout = 2 ))
30+ authority = authority , http_client = MinimalHttpClient ())
3131 else :
3232 app = msal .PublicClientApplication (
3333 client_id , authority = authority , http_client = MinimalHttpClient ())
@@ -292,7 +292,7 @@ def test_client_secret(self):
292292 self .config ["client_id" ],
293293 client_credential = self .config .get ("client_secret" ),
294294 authority = self .config .get ("authority" ),
295- http_client = MinimalHttpClient (timeout = 2 ))
295+ http_client = MinimalHttpClient ())
296296 scope = self .config .get ("scope" , [])
297297 result = self .app .acquire_token_for_client (scope )
298298 self .assertIn ('access_token' , result )
@@ -307,7 +307,7 @@ def test_client_certificate(self):
307307 self .app = msal .ConfidentialClientApplication (
308308 self .config ['client_id' ],
309309 {"private_key" : private_key , "thumbprint" : client_cert ["thumbprint" ]},
310- http_client = MinimalHttpClient (timeout = 2 ))
310+ http_client = MinimalHttpClient ())
311311 scope = self .config .get ("scope" , [])
312312 result = self .app .acquire_token_for_client (scope )
313313 self .assertIn ('access_token' , result )
@@ -330,7 +330,7 @@ def test_subject_name_issuer_authentication(self):
330330 "thumbprint" : self .config ["thumbprint" ],
331331 "public_certificate" : public_certificate ,
332332 },
333- http_client = MinimalHttpClient (timeout = 2 ))
333+ http_client = MinimalHttpClient ())
334334 scope = self .config .get ("scope" , [])
335335 result = self .app .acquire_token_for_client (scope )
336336 self .assertIn ('access_token' , result )
@@ -379,7 +379,7 @@ def get_lab_app(
379379 client_id ,
380380 client_credential = client_secret ,
381381 authority = authority ,
382- http_client = MinimalHttpClient (timeout = 2 ),
382+ http_client = MinimalHttpClient (),
383383 ** kwargs )
384384
385385def get_session (lab_app , scopes ): # BTW, this infrastructure tests the confidential client flow
@@ -528,7 +528,7 @@ def _test_acquire_token_obo(self, config_pca, config_cca):
528528 config_cca ["client_id" ],
529529 client_credential = config_cca ["client_secret" ],
530530 authority = config_cca ["authority" ],
531- http_client = MinimalHttpClient (timeout = 2 ),
531+ http_client = MinimalHttpClient (),
532532 # token_cache= ..., # Default token cache is all-tokens-store-in-memory.
533533 # That's fine if OBO app uses short-lived msal instance per session.
534534 # Otherwise, the OBO app need to implement a one-cache-per-user setup.
@@ -556,7 +556,7 @@ def _test_acquire_token_by_client_secret(
556556 assert client_id and client_secret and authority and scope
557557 app = msal .ConfidentialClientApplication (
558558 client_id , client_credential = client_secret , authority = authority ,
559- http_client = MinimalHttpClient (timeout = 2 ))
559+ http_client = MinimalHttpClient ())
560560 result = app .acquire_token_for_client (scope )
561561 self .assertIsNotNone (result .get ("access_token" ), "Got %s instead" % result )
562562
@@ -758,7 +758,7 @@ def test_acquire_token_for_client_should_hit_regional_endpoint(self):
758758 scopes = ["https://graph.microsoft.com/.default" ]
759759 result = self .app .acquire_token_for_client (
760760 scopes ,
761- params = {"AllowEstsRNonMsi" : "true" }, # For testing regional endpoint
761+ params = {"AllowEstsRNonMsi" : "true" }, # For testing regional endpoint. It will be removed once MSAL Python 1.12+ has been onboard to ESTS-R
762762 )
763763 self .assertIn ('access_token' , result )
764764 self .assertCacheWorksForApp (result , scopes )
@@ -855,7 +855,7 @@ def test_acquire_token_silent_with_an_empty_cache_should_return_none(self):
855855 usertype = "cloud" , azureenvironment = self .environment , publicClient = "no" )
856856 app = msal .ConfidentialClientApplication (
857857 config ['client_id' ], authority = config ['authority' ],
858- http_client = MinimalHttpClient (timeout = 2 ))
858+ http_client = MinimalHttpClient ())
859859 result = app .acquire_token_silent (scopes = config ['scope' ], account = None )
860860 self .assertEqual (result , None )
861861 # Note: An alias in this region is no longer accepting HTTPS traffic.
0 commit comments