Comments (9)
Are you using the NuGet restore task to restore packages? Which on-premise version of Azure DevOps are you using? If you are using the latest, Azure DevOps Server 2019.0.1, with the nuget task, there is already a version of the new cred provider installed. It's just not enabled by default yet for on-premise. If this is your case, let me know and I'll tell you the steps how to enable it. By the way the next update that's coming up, Azure DevOps Server 2019.1, will automatically use this cred provider when using the NuGet task and the nuget version used is 4.8 or greater.
from artifacts-credprovider.
I would imagine it's 2019.0.1, yes - the Software Version on the Admin Console About screen states
17.143.28621.4 (AzureDevOps2019)
The task we're using to Restore is this one: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/package/nuget?view=azure-devops-2019
I currently have it working by having created a local user on the machine, installed the cred provider for that user and by running the Agent service as that user. But it'd be great if we could get it working for the default Agent setup.
from artifacts-credprovider.
Great! The NuGet task version that you're using has the cred provider already installed but not used by default. You can use the cred provider by using NuGet version 4.8 or greater and setting the following build variables: NuGet_ForceEnableCredentialProviderV2 to "true" and NuGet.ForceEnableCredentialProvider to "false".
from artifacts-credprovider.
Did this work? Can I close the issue?
from artifacts-credprovider.
Apologies for the delay Satu, I need to set up a new build agent machine to test this with. I would recommend adding the info you provided here to the ReadMe for anyone else who needs it before 2019.1 is released, and then the ticket can be closed.
from artifacts-credprovider.
The newest version of the cred provider is on by default in Azure DevOps Server 2019 Update 1 RC1 https://docs.microsoft.com/en-us/azure/devops/server/release-notes/azuredevops2019u1?view=azure-devops#summary-of-whats-new-in-azure-devops-server-2019-update-1-rc1
from artifacts-credprovider.
@satbai I still need to test this for the new environment that we're (slowly) migrating towards - but in the meanwhile this question has come up again for our legacy environment running on TFS 2017. I'd like to install the credential provider on our on-premise build agents for the 2017 instance, but still the only option that it looks like I have is to create a local user account, install the credential provider on that account and change the user for the VSTS agent service. Is that correct?
from artifacts-credprovider.
Unfortunately, the NuGetCommandV2 pipeline tasks in TFS 2017 don't know about this cred provider yet - the cred provider was released about a year ago. So even if you install this on the build machine, the tasks are not set up to use it so it won't work as expected.
from artifacts-credprovider.
Now that this cred provider is enabled by default with the NuGetCommandV2 pipeline tasks in Azure DevOps Server 2019 Update 1 I'm going to close this issue. I'm choosing not to add the environment variable workaround to the readme because it's only going to work with versions after Azure DevOps Server 2019.0.1 and before Azure DevOps Server 2019 Update 1. This information isn't useful for most users of this cred provider.
But here's a summary:
TFS and Azure DevOps Server versions before 2019.0.1:
- NuGet tasks will be able to authenticate but won't use this cred provider - it'll use the old way of authenticating.
Azure DevOps Server 2019.0.1 forward and versions before Azure DevOps Server 2019 Update 1:
- NuGet task has the cred provider installed but not enabled for the NuGet tasks, which means it'll use the old way of authenticating. If this Artifacts Cred Provider is needed instead, it can be enabled by setting the build variables NuGet_ForceEnableCredentialProviderV2 to "true" and NuGet.ForceEnableCredentialProvider to "false".
Azure DevOps Server 2019 Update 1 (and the NuGet tasks in hosted Azure DevOps):
- NuGet tasks default to this cred provider as long as NuGet version 4.8 or greater is used.
from artifacts-credprovider.
Related Issues (20)
- Add installation method using `winget` HOT 4
- RateLimiting when using https://aka.ms/install-artifacts-credprovider.ps1 HOT 3
- Basic Authentication - Response status code does not indicate success: 401 (Unauthorized) HOT 16
- CredentialProvider.Microsoft.exe is not signed HOT 6
- Script default get .net 6 package HOT 1
- Persist credentials independent of session cache HOT 2
- "The system cannot find the file specified." after installing credprovider HOT 1
- Device flow prompt did not appear with `dotnet tool install -g` HOT 3
- Session token cache global lock doesn't work cross-platform HOT 5
- Setup releases to publish to choco and/or winget package managers HOT 9
- dotnet restore --interactive HOT 7
- Failed to acquire session token: System.IO.IOException: Cannot create cache because a file or directory with the same name already exists HOT 4
- Credential Provider + Linux + Rider HOT 6
- Support Azure managed identity authentication with AzureDevOps feeds HOT 7
- Running Crendential Provider Behind Proxy HOT 2
- <can be deleted>
- error NU1301: Unable to load the service index for source HOT 4
- How to use with ADO without VSS_NUGET_EXTERNAL_FEED_ENDPOINTS env var HOT 1
- Docker sample does not work on Windows HOT 6
- README: Linux one-line Credential Provider installer script does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artifacts-credprovider.