File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
sdk/identity/azure-identity
src/main/java/com/azure/identity Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 88
99### Bugs Fixed
1010- Fixed detection logic for az/azd.
11+ - Add ` disableInstanceDiscovery ` to ` DefaultAzureCredentialBuilder `
1112
1213## 1.8.1 (2023-03-06)
1314
Original file line number Diff line number Diff line change @@ -218,6 +218,17 @@ public DefaultAzureCredentialBuilder additionallyAllowedTenants(List<String> add
218218 return this ;
219219 }
220220
221+ /**
222+ * Disable instance discovery. Instance discovery is acquiring metadata about an authority from https://login.microsoft.com
223+ * to validate that authority. This may need to be disabled in private cloud or ADFS scenarios.
224+ *
225+ * @return An updated instance of this builder with instance discovery disabled.
226+ */
227+ public DefaultAzureCredentialBuilder disableInstanceDiscovery () {
228+ this .identityClientOptions .disableInstanceDisovery ();
229+ return this ;
230+ }
231+
221232 /**
222233 * Creates new {@link DefaultAzureCredential} with the configured options set.
223234 *
You can’t perform that action at this time.
0 commit comments