Skip to content

Commit 21006ef

Browse files
committed
updated comment
1 parent c04af8d commit 21006ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

msal/authority.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ def has_valid_issuer(self):
250250
authority_parsed.netloc == issuer_parsed.netloc):
251251
return True
252252

253-
# Case 5: Check if issuer host ends with any well-known B2C host (e.g., tenant.b2clogin.com)
253+
# Case 5: Check if issuer host is a subdomain of a well-known B2C host
254+
# e.g., tenant.b2clogin.com matches .b2clogin.com
255+
# but fakeb2clogin.com does not
254256
if any(issuer_host.endswith("." + h) for h in WELL_KNOWN_B2C_HOSTS):
255257
return True
256258

0 commit comments

Comments
 (0)