diff --git a/sdk/identity/azure-identity/CHANGELOG.md b/sdk/identity/azure-identity/CHANGELOG.md index f5d94d5c463ec..15fe7c2e7f6e0 100644 --- a/sdk/identity/azure-identity/CHANGELOG.md +++ b/sdk/identity/azure-identity/CHANGELOG.md @@ -9,6 +9,7 @@ ### Bugs Fixed ### Other Changes +- `@Deprecated` methods `DefaultAzureCredential.setIntelliJKeePassDatabasePath` and `IntelliJCredentialBuilder.keePassDatabasePath`. [#42437](https://github.com/Azure/azure-sdk-for-java/pull/42437) ## 1.14.0 (2024-10-03) diff --git a/sdk/identity/azure-identity/README.md b/sdk/identity/azure-identity/README.md index 6cfec720df940..0a4a6367c26ed 100644 --- a/sdk/identity/azure-identity/README.md +++ b/sdk/identity/azure-identity/README.md @@ -154,12 +154,10 @@ See more about how to configure your IntelliJ IDEA in [Sign in Azure Toolkit for ```java /** - * DefaultAzureCredential uses the KeePass database path to find the user account in IntelliJ on Windows. + * DefaultAzureCredential uses the signed-in user from Azure Toolkit for Java. */ public void createDefaultAzureCredentialForIntelliJ() { DefaultAzureCredential defaultCredential = new DefaultAzureCredentialBuilder() - // KeePass configuration required only for Windows. No configuration needed for Linux / Mac - .intelliJKeePassDatabasePath("C:\\Users\\user\\AppData\\Roaming\\JetBrains\\IdeaIC2020.1\\c.kdbx") .build(); // Azure SDK client builders accept the credential as a parameter diff --git a/sdk/identity/azure-identity/src/main/java/com/azure/identity/DefaultAzureCredentialBuilder.java b/sdk/identity/azure-identity/src/main/java/com/azure/identity/DefaultAzureCredentialBuilder.java index 8cc3109febc52..a638b37bfa14b 100644 --- a/sdk/identity/azure-identity/src/main/java/com/azure/identity/DefaultAzureCredentialBuilder.java +++ b/sdk/identity/azure-identity/src/main/java/com/azure/identity/DefaultAzureCredentialBuilder.java @@ -108,7 +108,10 @@ public DefaultAzureCredentialBuilder authorityHost(String authorityHost) { * @param databasePath the path to the KeePass database. * @throws IllegalArgumentException if {@code databasePath} is either not specified or is empty. * @return An updated instance of this builder with the KeePass database path set as specified. + * @deprecated Support for older Azure Toolkit for IntelliJ versions was + * removed in 1.14.0. */ + @Deprecated public DefaultAzureCredentialBuilder intelliJKeePassDatabasePath(String databasePath) { if (CoreUtils.isNullOrEmpty(databasePath)) { throw LOGGER.logExceptionAsError( diff --git a/sdk/identity/azure-identity/src/main/java/com/azure/identity/IntelliJCredentialBuilder.java b/sdk/identity/azure-identity/src/main/java/com/azure/identity/IntelliJCredentialBuilder.java index 242bdb6e64982..3253c499467b2 100644 --- a/sdk/identity/azure-identity/src/main/java/com/azure/identity/IntelliJCredentialBuilder.java +++ b/sdk/identity/azure-identity/src/main/java/com/azure/identity/IntelliJCredentialBuilder.java @@ -76,7 +76,10 @@ public IntelliJCredentialBuilder tenantId(String tenantId) { * @param databasePath the path to the KeePass database. * @throws IllegalArgumentException if {@code databasePath} is either not specified or is empty. * @return An updated instance of this builder with the KeePass database path set as specified. + * @deprecated Support for older Azure Toolkit for IntelliJ versions was + * removed in 1.14.0. */ + @Deprecated public IntelliJCredentialBuilder keePassDatabasePath(String databasePath) { if (CoreUtils.isNullOrEmpty(databasePath)) { throw LOGGER.logExceptionAsError(