microsoft / microsoft/azure-tools-for-java
IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE. - even when logged in
Open
@wangmingliang-ms is already working on this.
Since Dec 9, 2022.
Module: Auth
- Dominant language
- Java
- Stars
- 262
- Forks
- 185
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
Hi,
I am working on Windows 10 using Intellij Idea, 2022.3 (Ultimate Edition) and have Azure Toolkit for IntelliJ 2.71.0-2022.3 installed. I am logged into Azure using Oauth 2.0 and the Azure Explorer shows the resources in my subscription.
When I use the following code,
// get password secret from azure key vault
IntelliJCredential credential = new IntelliJCredentialBuilder()
.keePassDatabasePath("C:\\Users\\puneet\\AppData\\Roaming\\JetBrains\\IntelliJIdea2022.3\\c.kdbx")
.build();
SecretClient secretClient = new SecretClientBuilder()
.vaultUrl(keyVaultUrl)
.credential(credential)
.buildClient();
I get the following log
13:46:18.953 [main] INFO c.a.c.i.jackson.JacksonVersion - Package versions: jackson-core=2.13.4, jackson-databind=2.13.4-2, jackson-dataformat-xml=2.13.4, jackson-datatype-jsr310=2.13.4, azure-core=1.34.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot
13:46:58.448 [main] ERROR c.a.i.i.WindowsCredentialAccessor - Element not found.
13:46:58.460 [main] ERROR c.a.i.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.
13:46:58.463 [main] ERROR c.azure.identity.IntelliJCredential - Azure Identity => ERROR in getToken() call for scopes [https://vault.azure.net/.default]: IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.
13:46:58.466 [main] ERROR c.a.c.i.AccessTokenCache - Failed to acquire a new access token.
13:47:28.506 [parallel-1] ERROR c.a.i.i.WindowsCredentialAccessor - Element not found.
13:47:28.507 [parallel-1] ERROR c.a.i.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.
13:47:28.508 [parallel-1] ERROR c.azure.identity.IntelliJCredential - Azure Identity => ERROR in getToken() call for scopes [https://vault.azure.net/.default]: IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.
13:47:28.508 [parallel-1] ERROR c.a.c.i.AccessTokenCache - Failed to acquire a new access token.
13:47:58.509 [parallel-2] ERROR c.a.i.i.WindowsCredentialAccessor - Element not found.
13:47:58.510 [parallel-2] ERROR c.a.i.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.
13:47:58.510 [parallel-2] ERROR c.azure.identity.IntelliJCredential - Azure Identity => ERROR in getToken() call for scopes [https://vault.azure.net/.default]: IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.
13:47:58.510 [parallel-2] ERROR c.a.c.i.AccessTokenCache - Failed to acquire a new access token.
13:48:28.510 [parallel-3] ERROR c.a.i.i.WindowsCredentialAccessor - Element not found.
13:48:28.511 [parallel-3] ERROR c.a.i.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.
13:48:28.511 [parallel-3] ERROR c.azure.identity.IntelliJCredential - Azure Identity => ERROR in getToken() call for scopes [https://vault.azure.net/.default]: IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.
13:48:28.511 [parallel-3] ERROR c.a.c.i.AccessTokenCache - Failed to acquire a new access token.
13:48:28.515 [main] ERROR c.azure.core.http.policy.RetryPolicy - {"az.sdk.message":"Retry attempts have been exhausted.","exception":"IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.","tryCount":3}
13:48:28.517 [main] ERROR c.azure.core.http.policy.RetryPolicy - IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.
13:48:28.518 [main] ERROR c.a.c.i.http.rest.RestProxyBase - IntelliJ Authentication not available. Please log in with Azure Tools for IntelliJ plugin in the IDE.
Please help.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.