Closed jianghaolu closed 3 years ago
We've encountered this bug as well. Previously working code is now failing for tenantId
. This is happening on the command line when we attempt to run our app using the DefaultAzureCredentialBuilder
Setup: IntelliJ IDEA 2021.1.2 (Ultimate Edition) Build #IU-211.7442.40, built on May 31, 2021 Runtime version: 11.0.11+9-b1341.57 x86_64 VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o. macOS 11.4 GC: G1 Young Generation, G1 Old Generation Memory: 1500M Cores: 16 Registry: ide.background.tasks=false, ide.balloon.shadow.size=0 Non-Bundled Plugins: com.intellij.lang.liquid (211.6693.44), com.mallowigi (36.0), net.seesharpsoft.intellij.plugins.csv (2.17.0), org.intellij.plugins.hcl (0.7.10), org.jetbrains.kotlin (211-1.5.0-release-759-IJ6693.72), intellij.ktor (1.5.5), com.nbadal.ktlint (0.7.6), com.chrisrm.idea.MaterialThemeUI (6.6.0), com.microsoft.tooling.msservices.intellij.azure (3.53.0-2021.1), Pythonid (211.7442.45) Kotlin: 211-1.5.0-release-759-IJ6693.72
If I log in via the Azure tools in Intellij, I don't encounter this error, only on using the AzureDefaultCredentialBuilder.
Duplicate of https://github.com/Azure/azure-sdk-for-java/issues/22429 /cc @g2vinay
Describe the bug The object mapper is not configured to allow unknown properties: https://github.com/Azure/azure-sdk-for-java/blob/3f31d68eed6fbe11516ca3afe3955c8840a6e974/sdk/identity/azure-identity/src/main/java/com/azure/identity/implementation/IntelliJCacheAccessor.java#L255
Error: 2021-06-22 10:30:26.364 ERROR c.azure.identity.IntelliJCredential , - Azure Identity => ERROR in getToken() call for scopes [https://rsp1euwniptuckd1.blob.core.windows.net/.default]: Unrecognized field "tenantId" (class com.azure.identity.implementation.IntelliJAuthMethodDetails), not marked as ignorable (4 known properties: "authMethod", "azureEnv", "accountEmail", "credFilePath"]) at [Source: (File); line: 1, column: 52] (through reference chain: com.azure.identity.implementation.IntelliJAuthMethodDetails["tenantId"])
To Reproduce Steps to reproduce the behavior:
Setup (please complete the following information): IntelliJ IDEA 2021.1.1 (Community Edition) Build #IC-211.7142.45, built on April 30, 2021 Runtime version: 11.0.10+9-b1341.41 amd64 VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 4096M Cores: 8 Registry: ide.background.tasks=false Non-Bundled Plugins: com.dmarcotte.handlebars (211.6693.44), com.jetbrains.nim (1.4.0-203), com.jetbrains.plugins.ini4idea (211.6693.44), in.xiv.cs (0.1), com.microsoft.tooling.msservices.intellij.azure (3.53.0-2021.1), PythonCore (211.7142.45) Kotlin: 211-1.4.32-release-IJ7142.27