Coder Social home page Coder Social logo

Comments (4)

embetten avatar embetten commented on June 11, 2024

Hi @vyruz1986 can you re-run the command with the --verbosity detailed and set the env varaibles: NUGET_PLUGIN_ENABLE_LOG,
NUGET_CREDENTIALPROVIDER_LOG_PATH, NUGET_PLUGIN_LOG_DIRECTORY_PATH (see our readme and nuget docs for more info on these env variables) and send us the resulting logs so we can investigate further. Make sure to remove any PII data including tokens, ADO org/project /feed names. If there is an activity Id in the logs, please share that as well.

It is interesting that the cred provider is falling through to device code flow on a windows machine. Can you provide any context on the device or environment you are running the cred provider?

A couple troubleshooting steps to try in the meantime:

  1. triple check your permissions to the feed.
  2. Make sure you have navigated to the Azure Artifacts UI in the Azure DevOps portal for the org/project of the feed you are trying to authenticate to prior to running the cred provider. Azure DevOps requires this step.

from artifacts-credprovider.

vyruz1986 avatar vyruz1986 commented on June 11, 2024
  1. Make sure you have navigated to the Azure Artifacts UI in the Azure DevOps portal for the org/project of the feed you are trying to authenticate to prior to running the cred provider. Azure DevOps requires this step.

I didn't do this yesterday when I created this issue, I did afterwards for some reason but didn't think to try again after that. While I was going through the steps to get the requested debug logs, it just worked, and I realised that was my problem yesterday. So my problem is fixed, thanks!

It is interesting that the cred provider is falling through to device code flow on a windows machine. Can you provide any context on the device or environment you are running the cred provider?

I find this comment interesting, I've been using DevOps and this credential provider on Windows for years, and I've always had to use the device code method to authenticate myself, you're saying it's not supposed to do this? As opposed to directly initiating a browser login session?

I did notice that when authenticating against the same artifact repository using NPM (with the help of vsts-npm-auth) it did directly pop up a browser window and took me to through the login flow instead of using a device code.

from artifacts-credprovider.

embetten avatar embetten commented on June 11, 2024

Glad to hear that worked!

For the device code flow: ah you are running from dotnet - try setting the NUGET_CREDENTIALPROVIDER_FORCE_CANSHOWDIALOG_TO to true and see if that allows the browser authentication. That is assuming you prefer the browser to device code flow. More info on why dotnet and nuget have this as false even on interactive in a comment previous issue.

from artifacts-credprovider.

embetten avatar embetten commented on June 11, 2024

Closing. Since navigating to the Azure Artifacts Ui resolved the login issue.

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.