You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# id came from https://docs.msidlab.com/accounts/confidentialclient.html
466
-
client_id=os.getenv(env_client_id)
467
483
client_credential= {
468
484
"private_key_pfx_path":
469
485
# Cert came from https://ms.portal.azure.com/#@microsoft.onmicrosoft.com/asset/Microsoft_Azure_KeyVault/Certificate/https://msidlabs.vault.azure.net/certificates/LabAuth
470
-
os.getenv(env_client_cert_path),
486
+
cert_path,
471
487
"public_certificate": True, # Opt in for SNI
472
488
}
473
489
else:
474
490
logger.info("ENV variables are not defined. Fall back to MSI.")
475
491
# See also https://microsoft.sharepoint-df.com/teams/MSIDLABSExtended/SitePages/Programmatically-accessing-LAB-API's.aspx
476
492
raiseunittest.SkipTest("MSI-based mechanism has not been implemented yet")
477
493
returnmsal.ConfidentialClientApplication(
478
-
client_id,
494
+
LAB_APP_CLIENT_ID,
479
495
client_credential=client_credential,
480
496
authority=authority,
481
497
http_client=MinimalHttpClient(timeout=timeout),
@@ -831,7 +847,6 @@ def test_user_account(self):
831
847
832
848
833
849
classWorldWideTestCase(LabBasedTestCase):
834
-
_ADFS_LABS_UNAVAILABLE="ADFS labs were temporarily down since July 2025 until further notice"
835
850
836
851
deftest_aad_managed_user(self): # Pure cloud
837
852
"""Test username/password flow for a managed AAD user."""
@@ -846,7 +861,6 @@ def test_aad_managed_user(self): # Pure cloud
846
861
scope=["https://graph.microsoft.com/.default"],
847
862
)
848
863
849
-
@unittest.skip(_ADFS_LABS_UNAVAILABLE)
850
864
deftest_adfs2022_fed_user(self):
851
865
"""Test username/password flow for a federated user via ADFS 2022."""
0 commit comments