Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is posible to use ApiKey when restore nugets #4049

Closed
McMlok opened this issue Dec 1, 2016 · 1 comment
Closed

Is posible to use ApiKey when restore nugets #4049

McMlok opened this issue Dec 1, 2016 · 1 comment

Comments

@McMlok
Copy link

McMlok commented Dec 1, 2016

Hello,

we have our internal Nuget repository (Nexus 3) secured with ApiKey. I try to set ApiKey to nuget.config with command nugget setapikey for our repo URL. But when I try to restore packages from this repo I was prompted for username/password. When I try to push new package to repo it use apikey and it works. Is possible to configure nuget to use apikey for restore package?

I know I can use packageSourceCredentials and store username/password for source but it don't solve problem for long time because of password expiration policy.

I try this with Nuget.exe 2.8, 3.4, 3.5, 4.0RC3

Thanks

@zhili1208 zhili1208 added this to the Backlog milestone Oct 17, 2017
@emgarten emgarten modified the milestones: Backlog, 4.6 Jan 3, 2018
@emgarten emgarten added the Resolution:ByDesign This issue appears to be ByDesign label Jan 3, 2018
@emgarten
Copy link
Member

emgarten commented Jan 3, 2018

The API key is only used for pushing packages. It is not used for authenticating to a private feed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants