Closed viswanath-pamarthi closed 1 day ago
@viswanath-pamarthi Thanks for reaching out. Based on the repro steps you provided, it looks like you may need to install the Azure Artifacts Credential Provider plugin. This link with give details on how to install it on Mac: https://github.com/microsoft/artifacts-credprovider?tab=readme-ov-file#installation-on-linux-and-mac
After you've installed that, please try the repro again and if you are now seeing a popup requesting you to authenticate to your private feed, please see the instructions to authenticate in the Output pane.
@jebriede Thank you for your response, this is actually for local development on Mac, time being I have resolved the issue by using a PAT token and clearTestPassword in the nuget file for the private azure nuget feed.
Sure, will install the "Azure Artifacts Credential Provider plugin" and try.
@jebriede, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer.
@viswanath-pamarthi Here's a doc we have on managing credentials: https://learn.microsoft.com/en-us/nuget/consume-packages/consuming-packages-authenticated-feeds#security-best-practices-for-managing-credentials.
Given that your issue is resolved, I'm thinking we should close this.
Do you agree?
Sorry for the delay, yes, we can close this.
@jebriede, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer.
Describe the Issue
In Visual Studio Code Mac, we have noticed that Local azure nuget artifact feed fails package restore with 401 unauthorized error. However, works perfectly fine in Visual Studio Mac. Below is the error: /usr/local/share/dotnet/sdk/8.0.201/NuGet.targets(169,5): error : Unable to load the service index for source https://pkgs.dev.azure.com/**MyOrg**/_packaging/**MyFeed**/nuget/v3/index.json.
Steps To Reproduce
Expected Behavior
As I am already authenticated to C# dev kit extension with Visual studio subscription via Microsoft login credentials of our organization, nuget restore in VS code Mac should complete/authenticate successfully without an error.
Environment Information