Skip to content

Commit

Permalink
Add disable instance discovery to DAC (Azure#34257)
Browse files Browse the repository at this point in the history
  • Loading branch information
billwert authored Mar 31, 2023
1 parent df3d4e6 commit 8370f46
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions sdk/identity/azure-identity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

### Bugs Fixed
- Fixed detection logic for az/azd.
- Add `disableInstanceDiscovery` to `DefaultAzureCredentialBuilder`

## 1.8.1 (2023-03-06)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,17 @@ public DefaultAzureCredentialBuilder additionallyAllowedTenants(List<String> add
return this;
}

/**
* Disable instance discovery. Instance discovery is acquiring metadata about an authority from https://login.microsoft.com
* to validate that authority. This may need to be disabled in private cloud or ADFS scenarios.
*
* @return An updated instance of this builder with instance discovery disabled.
*/
public DefaultAzureCredentialBuilder disableInstanceDiscovery() {
this.identityClientOptions.disableInstanceDisovery();
return this;
}

/**
* Creates new {@link DefaultAzureCredential} with the configured options set.
*
Expand Down

0 comments on commit 8370f46

Please sign in to comment.