Code Monkey home page Code Monkey logo

Comments (9)

infin8x avatar infin8x commented on July 24, 2024

@sabbadino can you share the logs and also the nuget.config that causes the 401 (with any auth tokens redacted)?

@anangaur @nkolev92 thoughts on this?

from artifacts-credprovider.

nkolev92 avatar nkolev92 commented on July 24, 2024

Normally they are different concerns.

The NuGet client has no idea about VSS_NUGET_EXTERNAL_FEED_ENDPOINTS.

It's about whether the client ends up calling the plugin to get credentials.

from artifacts-credprovider.

sabbadino avatar sabbadino commented on July 24, 2024

According to my tests, auth stops working if the nuget.config has valid credentials (Pat token) for the feed, or if it just "mention" the protected feed without providing credentials.

from artifacts-credprovider.

nkolev92 avatar nkolev92 commented on July 24, 2024

Can you clarify what you mean by stops working?

nuget.config creds are preferred over using plugins.

from artifacts-credprovider.

sabbadino avatar sabbadino commented on July 24, 2024

I mean that if there is a nuget config "around" , even without credentials, I get unauthorized when dotnetcore restore is run , even if VSS_NUGET_EXTERNAL_FEED_ENDPOINTS is setup correctly .
If I comment the line that copies the nuget config in the docker file , downloading packages from the tfs feed works

from artifacts-credprovider.

nkolev92 avatar nkolev92 commented on July 24, 2024

Does the nuget.config in question add sources that are not listed in VSS_NUGET_EXTERNAL_FEED_ENDPOINTS ?

How are the sources specified when you don't have the nuget.config in question?

from artifacts-credprovider.

sabbadino avatar sabbadino commented on July 24, 2024

from artifacts-credprovider.

satbai avatar satbai commented on July 24, 2024

@sabbadino If VSS_NUGET_EXTERNAL_FEED_ENDPOINTS helps you authenticate it must mean NuGet found the cred provider plugin and the env var is working correctly. The question by nkolev92 remains though - how do you specify the sources when you don't have nuget.config set in your docker file?

Also note that the package source url in the provided nuget.config must match the url set in VSS_NUGET_EXTERNAL_FEED_ENDPOINTS exactly. Currently https://pkgs.dev.azure.com/<account>/_packaging/<feed>/nuget/v3/index.json and https://<account>.pkgs.visualstudio.com/_packaging/<feed>/nuget/v3/index.json are not considered the same url even though it points to the same feed.

from artifacts-credprovider.

shubham90 avatar shubham90 commented on July 24, 2024

closing this due to inactivity. Please feel free to re-open if you have more updates.

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.