Skip to content

Commit ffc6590

Browse files
authored
Merge pull request #257 from AzureAD/cloud_audience_urn_change
Adding default value for cloud audience urn extracted from User Realm Response
2 parents a4408fe + 4f5e012 commit ffc6590

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

msal/application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,8 @@ def _acquire_token_by_username_password_federated(
953953
"https://github.com/AzureAD/microsoft-authentication-library-for-python/wiki/Username-Password-Authentication")
954954
logger.debug("wstrust_endpoint = %s", wstrust_endpoint)
955955
wstrust_result = wst_send_request(
956-
username, password, user_realm_result.get("cloud_audience_urn"),
956+
username, password,
957+
user_realm_result.get("cloud_audience_urn", "urn:federation:MicrosoftOnline"),
957958
wstrust_endpoint.get("address",
958959
# Fallback to an AAD supplied endpoint
959960
user_realm_result.get("federation_active_auth_url")),

0 commit comments

Comments
 (0)