Code Monkey home page Code Monkey logo

Comments (4)

Diogomrol avatar Diogomrol commented on July 24, 2024

Well it looks like this specific error happens because I passed the -verbosity argument to NuGet.exe call and it also calls the CrendentialProvider with that.

But the problem is still here: if I do not use the -verbosity argument the warning about credential plugin model being deprecated still shows up and then I get a 401 Unauthorized

from artifacts-credprovider.

Diogomrol avatar Diogomrol commented on July 24, 2024

So, more news on this.

If I try to call the CredentialProvider directly it seems to work, using this command line:

CredentialProvider.Microsoft.exe -uri https://pkgs.dev.azure.com/<project>/_packaging/<feed>/nuget/v3/index.json -nonInteractive

I actually get a response with a username and a password.

However, through nuget.exe, I am getting the following error:

WARNING: The credential plugin model used by 'C:\svn\trunkrepo\ServiceStudio..\Commons\ThirdParty\AzureCredentialsProvider\plugins\netfx\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe' is deprecated. Please contact the provider of the plugin for an alternative. More information about the recommended plugin model can be found at 'https://aka.ms/nuget-cross-platform-authentication-plugin'.
Credential plugin C:\svn\trunkrepo\ServiceStudio..\Commons\ThirdParty\AzureCredentialsProvider\plugins\netfx\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe returned Success with an unreadable payload.

from artifacts-credprovider.

nkolev92 avatar nkolev92 commented on July 24, 2024

NUGET_CREDENTIALPROVIDERS_PATH is used for plugins supporting the old plugin model: https://docs.microsoft.com/en-us/nuget/reference/extensibility/nuget-exe-credential-providers.

This is a V2 style provider:

https://docs.microsoft.com/en-us/nuget/reference/extensibility/nuget-cross-platform-plugins#plugin-installation-and-discovery

Basically, don't use the environment variable. If you already have the plugin in the netfx folder, it should pick it up automatically.

from artifacts-credprovider.

zarenner avatar zarenner commented on July 24, 2024

Closing as not a bug. @Diogomrol please let us know if you're still having issues, but hopefully Nikolche's guidance above helped.

from artifacts-credprovider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.