Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,12 +841,14 @@ def test_user_account(self):


class WorldWideTestCase(LabBasedTestCase):
_ADFS_LABS_UNAVAILABLE = "ADFS labs were temporarily down since July 2025 until further notice"

def test_aad_managed_user(self): # Pure cloud
config = self.get_lab_user(usertype="cloud")
config["password"] = self.get_lab_user_secret(config["lab_name"])
self._test_username_password(**config)

@unittest.skip(_ADFS_LABS_UNAVAILABLE)
def test_adfs4_fed_user(self):
config = self.get_lab_user(usertype="federated", federationProvider="ADFSv4")
config["password"] = self.get_lab_user_secret(config["lab_name"])
Expand All @@ -864,6 +866,7 @@ def test_adfs2_fed_user(self):
config["password"] = self.get_lab_user_secret(config["lab_name"])
self._test_username_password(**config)

@unittest.skip(_ADFS_LABS_UNAVAILABLE)
def test_adfs2019_fed_user(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not decommisioned

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When running this test case, it will visit the MEX endpoint of the ADFS https://fs.msidlab8.com/adfs/services/trust/mex

That endpoint gives an http 504 error right now. If it is not decommissioned, then we will need to investigate whether it is not configured properly.

try:
config = self.get_lab_user(usertype="federated", federationProvider="ADFSv2019")
Expand Down Expand Up @@ -892,6 +895,7 @@ def test_msa_pt_app_signin_via_organizations_authority_without_login_hint(self):
prompt="select_account", # In MSAL Python, this resets login_hint
))

@unittest.skip(_ADFS_LABS_UNAVAILABLE)
def test_ropc_adfs2019_onprem(self):
# Configuration is derived from https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/4.7.0/tests/Microsoft.Identity.Test.Common/TestConstants.cs#L250-L259
config = self.get_lab_user(usertype="onprem", federationProvider="ADFSv2019")
Expand All @@ -900,6 +904,7 @@ def test_ropc_adfs2019_onprem(self):
config["password"] = self.get_lab_user_secret(config["lab_name"])
self._test_username_password(**config)

@unittest.skip(_ADFS_LABS_UNAVAILABLE)
def test_adfs2019_onprem_acquire_token_by_auth_code(self):
"""When prompted, you can manually login using this account:

Expand All @@ -913,6 +918,7 @@ def test_adfs2019_onprem_acquire_token_by_auth_code(self):
config["port"] = 8080
self._test_acquire_token_by_auth_code(**config)

@unittest.skip(_ADFS_LABS_UNAVAILABLE)
def test_adfs2019_onprem_acquire_token_by_auth_code_flow(self):
config = self.get_lab_user(usertype="onprem", federationProvider="ADFSv2019")
self._test_acquire_token_by_auth_code_flow(**dict(
Expand All @@ -922,6 +928,7 @@ def test_adfs2019_onprem_acquire_token_by_auth_code_flow(self):
port=8080,
))

@unittest.skip(_ADFS_LABS_UNAVAILABLE)
def test_adfs2019_onprem_acquire_token_interactive(self):
config = self.get_lab_user(usertype="onprem", federationProvider="ADFSv2019")
self._test_acquire_token_interactive(**dict(
Expand Down
Loading