chore(m365): accept all tenant domains in authentication (#7746)

This commit is contained in:
Hugo Pereira Brito authored and GitHub committed 2025-05-19 13:53:54 +05:45
1 parent a2362b4bbc
commit a18dd76a5a
7 files changed
+340 -234

No files matched your search

+2 -2
View File
@@ -218,9 +218,9 @@ class Provider(RowLevelSecurityProtectedModel):
@staticmethod
def validate_m365_uid(value):
if not re.match(r"^[a-zA-Z0-9-]+\.onmicrosoft\.com$", value):
if not re.match(r"^[a-zA-Z0-9-]+\.com$", value):
raise ModelValidationError(
detail="M365 tenant ID must be a valid domain.",
detail="M365 domain ID must be a valid domain.",
code="m365-uid",
pointer="/data/attributes/uid",
)