[BUG] Azure Toolkit for IntelliJ - IntelliJCredential does not find logged in creds in keychain on Mac #39799
Closed
3 tasks done
Labels
Azure.Identity
azure-spring
All azure-spring related issues
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
I am using the Azure Toolkit for IntelliJ (version 3.87.0-2023.3) on IDEA Ultimate 2023.3.2 on a Mac laptop.
I am able to log into the toolkit, but then when running a local development environment (a Spring Boot app), the IntellijCredential (from azure-identity) is not finding the cached login credentials in the Mac Keychain.
From looking at the code in the current azure-identity codebase, it appears that the cache is written to a keychain value with name 'Microsoft.Developer.IdentityService' and account name 'azure-toolkit.cache.nocae' (in
PersistentTokenCacheImpl
), but the IntellijCredential class is looking for a record without the '.nocae' suffix, i.e. just 'azure-toolkit.cache' (inIntelliJCacheAccessor
).Exception or Stack Trace
When starting a Spring Boot app that makes use of azure identity services (e.g. running with 'com.azure.spring:spring-cloud-azure-starter-keyvault', but likely affects any azure sdk libraries that use
DefaultCredential
), the following is logged during startup:and the app fails to start.
If I manually change the account value on the saved keychain entry using the Mac's Keychain Access utility (to remove the '.nocae' suffix) and retry, the app starts up.
To Reproduce
application.properties
file to one the account has access to).Expected behavior
I would expect the toolkit plugin to write the cached creds to a keychain location that the
IntelliJCredential
class then finds it, and the app should start up successfully as soon as the user has logged into the AZ toolkit in IntelliJ.Setup (please complete the following information):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
azure-identity-mac-issue.zip
The text was updated successfully, but these errors were encountered: