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

This commit is contained in:
Hugo Pereira Brito
2025-05-19 10:08:54 +02:00
committed by GitHub
parent a2362b4bbc
commit a18dd76a5a
7 changed files with 340 additions and 234 deletions
+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",
)