Automate configuring authentication to Azure Artifacts feeds
See original GitHub issueIs your feature request related to a problem? Please describe.
It is very difficult to automate use of Azure Artifacts NPM packages. Human users have to periodically download a credentials file with a relatively short lifespan. More importantly, I have yet to find a way to automate authentication for non-human users using yarn install
, such as in a build script.
Describe the solution you’d like
az artifacts npm auth --feed <feed> --org <org>
should configure the credential file in the current working directory for the current authenticated user.
az artifacts npm auth --feed <feed> --org <org> --auto-renew
should configure the credential fille in the current working directory for the current authenticated user and periodically update the credential file to ensure the credential file never expires.
Ideally other package types would support a similar command. For example: az artifacts nuget auth ...
would install and configure the Artifacts Credential Provider.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
@chriskuech nothing currently in development yet, @elbatk can hopefully speak to timeline.
Coming back again, we still don’t have anything on the backlog for xplat vsts-npm-auth. If it were to happen, it would be next quarter but we haven’t planned that yet. I’m going to close this issue with the statement that adding authentication to the CLI is something that I’ve thrown on the backlog for consideration but isn’t high up on our radar currently.