Skip to content

Commit 42516f5

Browse files
committed
Placeholders in some error will use curly brackets
This way, it will remain visible even if it is rendered on web. The choice of curly brackets is influenced by URL Template RFC 6570.
1 parent ae7cf14 commit 42516f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

msal/authority.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ def canonicalize(authority_or_auth_endpoint):
163163
raise ValueError(
164164
"Your given address (%s) should consist of "
165165
"an https url with a minimum of one segment in a path: e.g. "
166-
"https://login.microsoftonline.com/<tenant> "
167-
"or https://<tenant_name>.ciamlogin.com/<tenant> "
168-
"or https://<tenant_name>.b2clogin.com/<tenant_name>.onmicrosoft.com/policy"
166+
"https://login.microsoftonline.com/{tenant} "
167+
"or https://{tenant_name}.ciamlogin.com/{tenant} "
168+
"or https://{tenant_name}.b2clogin.com/{tenant_name}.onmicrosoft.com/policy"
169169
% authority_or_auth_endpoint)
170170

171171
def _instance_discovery(url, http_client, instance_discovery_endpoint, **kwargs):

0 commit comments

Comments
 (0)