microsoft / microsoft/azure-tools-for-java

[IntelliJ][ReportedByUser] Customer Issues

Open
#7,587 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
262
Forks
185
Avg merge
2d 21h
Merged PRs (30d)
1

Description

Setup

IntelliJ build version: 2023.1 IC-231.8109.175
OS: Windows 10
JDK: JetBrains s.r.o. 17.0.6
Plugin version: 3.76.1-2023.1

Describe the bug

I'm using the Azure Tools for IntelliJ plugin, and I've signed in appropriately via the Tools -> Azure -> Sign in method
When I run my application to access a key vault secret, I receive the following error:

[ForkJoinPool.commonPool-worker-1] ERROR com.azure.identity.implementation.IdentityClient - IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.
IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.

When I debug, I noticed that the file "AuthMethodDetails.json" is not in the expected folder. The expected folder looks like it should be: C:\Users<USER>.AzureToolsForIntelliJ but there is no file in that folder.

I've tried using the DefaultAzureCredential but because I currently have an older version of the Azure CLI, a stdout message is failing the JSON parsing of the access token when it attempts to get credentials via the Azure CLI. I'm waiting to get a newer version installed and was hoping to use the IntelliJ Plugin as a workaround.

To Reproduce

Download the Azure Toolkit for IntelliJ. Sign in to your Azure Account. Run an application using the IntelliJCredential builder.

Exception or Stack Trace
[ForkJoinPool.commonPool-worker-1] ERROR com.azure.identity.implementation.IdentityClient - IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.
IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the sign-in flow with the Azure Toolkit for IntelliJ and an application using the IntelliJCredential builder. Check whether AuthMethodDetails.json is created under C:\Users<USER>.AzureToolsForIntelliJ and compare the result with the reported authentication error. Done means the credential is available to the application without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, java
Domain
authentication, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.