From 0dbf9719734aeedf02e77bec47608605036467f3 Mon Sep 17 00:00:00 2001 From: Samuel Kubai Date: Thu, 1 Jul 2021 13:54:13 +0300 Subject: [PATCH] fix: replace the auto discover flag with the flag from the .NET team --- lib/msal-common/src/utils/Constants.ts | 2 +- lib/msal-node/docs/regional-authorities.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msal-common/src/utils/Constants.ts b/lib/msal-common/src/utils/Constants.ts index 78ec6e1e42..7749e8d8ad 100644 --- a/lib/msal-common/src/utils/Constants.ts +++ b/lib/msal-common/src/utils/Constants.ts @@ -42,7 +42,7 @@ export const Constants = { IMDS_ENDPOINT: "http://169.254.169.254/metadata/instance/compute/location", IMDS_VERSION: "2020-06-01", IMDS_TIMEOUT: 2000, - AZURE_REGION_AUTO_DISCOVER_FLAG: "AUTO_DISCOVER", + AZURE_REGION_AUTO_DISCOVER_FLAG: "TryAutoDetect", REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX: "login.microsoft.com", KNOWN_PUBLIC_CLOUDS: ["login.microsoftonline.com", "login.windows.net", "login.microsoft.com", "sts.windows.net"] }; diff --git a/lib/msal-node/docs/regional-authorities.md b/lib/msal-node/docs/regional-authorities.md index 657ad74af9..71e60426da 100644 --- a/lib/msal-node/docs/regional-authorities.md +++ b/lib/msal-node/docs/regional-authorities.md @@ -42,7 +42,7 @@ cca }); ``` -> NOTE: If you provide the value `"AUTO_DISCOVER"` in the `azureRegion` field, the msal library which will try to discover the region the application has been deployed to and use that region. If no region is auto discovered the library will fall back to using the global authority. +> NOTE: If you provide the value `"TryAutoDetect"` in the `azureRegion` field, the msal library which will try to discover the region the application has been deployed to and use that region. If no region is auto discovered the library will fall back to using the global authority. ## Sample You can find a working sample of this feature in the client-credentials [sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/client-credentials)