Nuget Manager -The plugin credential provider could not acquire credentials. Authentication may require manual action
Describe the bug
I am getting the below error while trying to create a new bot using Bot Framework Composer.
[NuGet Manager] [Warning] The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for dotnet, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for NuGet
Version
V2.1.2
Browser
- [ ] Electron distribution
- [ ] Chrome
- [ ] Safari
- [ ] Firefox
- [ ] Edge
OS
- [ ] macOS
- [X ] Windows
- [ ] Ubuntu
To Reproduce
Steps to reproduce the behavior:
- Start Bot Framework Composer Application.
- Click on 'Create New
- Select 'Empty BO'
- See error
Expected behavior
Empty Bot application should be created.
Screenshots
Additional context
Installed .NET Framework 4.8 Developer Pack
Installed .NET Core 3.1 SDK
Visual Studio 2019 and 2022 both are installed.
Node JS installed
Thanks @sureshbm, we are investigating this issue.
Not a fix, but a workaround -- I had this error with Node.js 18.17.1 (includes npm 9.6.7), and it got resolved with an update to Latest Current Version: 20.6.1 (includes npm 9.8.1)
Hi @sureshbm,
It appears I'm not able to reproduce this issue:
https://github.com/microsoft/BotFramework-Composer/assets/38049078/6e008830-7ec8-4a17-8232-eb1516ce27c6
Environment:
Composer v2.1.2
Operating System: macOS M1 Ventura 13.4
# dotnet --list-sdks
6.0.410 [/usr/local/share/dotnet/sdk]
6.0.412 [/usr/local/share/dotnet/sdk]
6.0.413 [/usr/local/share/dotnet/sdk]
7.0.304 [/usr/local/share/dotnet/sdk]
7.0.306 [/usr/local/share/dotnet/sdk]
7.0.307 [/usr/local/share/dotnet/sdk]
7.0.400 [/usr/local/share/dotnet/sdk]
8.0.100-preview.6.23330.14 [/usr/local/share/dotnet/sdk]
# npm --version
8.19.4
# node --version
v16.20.1
Asking a few clarifying questions:
- Could you please confirm if you are using a
C#orNodeJSComposer bot? - Are you using any private NuGet feeds or repositories for your project? If yes, can you confirm if they require authentication?
- Do you have multiple NuGet sources or feeds configured for your project? Are they a mix of public (like NuGet.org) and private feeds?
- Do you have a
nuget.configfile in your project or solution directory? This file contains NuGet settings and source configurations.
Hi @sureshbm, any status update on this?
Have you had a chance to try @JaneIllario's workaround to see if that address your issue?
Closing due to inactivity. @sureshbm, please re-open if needed.
On prem buildserver with VS 2022 17.8 connected to Azure Devops Services Build fails with
##[warning]D:\B\A01_tool\dotnet\sdk\8.0.100\NuGet.targets(156,5): Warning : The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for dotnet, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for NuGet
same here after updateing to vs 2022 17.8.1
same here after updateing to vs 2022 17.8.1
Same here.
On prem buildserver with VS 2022 17.8 connected to Azure Devops Services Build fails with
##[warning]D:\B\A01_tool\dotnet\sdk\8.0.100\NuGet.targets(156,5): Warning : The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for
dotnet, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch forNuGet
I solved this by adding the NugetAuthenticate@1 task to my pipeline.
same here after updateing to vs 2022 17.8.1
Same here.
same here with our company nuget... (thought I fixed it because I had forgotten nuget.config but after a couple of builds it stopped working againg with the same error)
This is not a closed issue. It is happening with Azure DevOps pipelines using MSBuild task to build Azure Function projects using Visual Studio Version 17.12.0 Preview 2.1.
The pipeline would build all the other projects but would crash building Azure Functions with "The plugin credential provider could not acquire credentials" when trying to access the organization's private ADO repo.
The workaround proposed by @n-athan seems to be holding for me. I added NugetAuthenticate@1 with no parameters. When I kicked off the pipeline manually it halted asking for more permissions. I clicked the button to grant permission and then the pipeline continued without error and successfully built the Azure Function projects.