Credentials required pushing to account feed (with API key)
I'm running into a problem whereby a NuGet is requiring credentials even though I'm supplying an API key. It applies both through my local command line and in an appveyor build via appveyor.yml conifguration.
I have a non-straight forward nuspec configuration, but I otherwise simply want to deploy the nupkg output to my project feed.
Is my assumption that the process is not intended to require username/password correct?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 25 Jun, 2014 05:56 PM
Make sure you are not pushing the package to project feed. Only account feed allows pushing external packages.
- Feodor
2 Posted by richard on 25 Jun, 2014 10:51 PM
Hi Feodor,
I can confirm that I'm definitely pushing to the account feed. Below is the build output:
The API key is taken from https://ci.appveyor.com/nuget, encrypted using https://ci.appveyor.com/tools/encrypt and supplied in the appveyor.yml as such:
Cheers,
Richard
Support Staff 3 Posted by Feodor Fitsner on 26 Jun, 2014 02:53 PM
OK, thanks foe the details. I will take a look what's wrong.
Btw, you don't have to explicitly publish NuGet packages using deployment provider - all NuGet packages pushed to artifacts automatically getting published to both project and account feeds.
4 Posted by richard on 28 Jun, 2014 02:46 AM
Thanks for the pointer Feodor, I've removed the explicit nuget push call and it's working as expected.
Support Staff 5 Posted by Feodor Fitsner on 29 Jun, 2014 03:10 AM
Nevertheless, there was a bug with enabled feed authentication for package create and delete operations which is already fixed. I will deploy update today.
Support Staff 6 Posted by Feodor Fitsner on 29 Jun, 2014 07:13 AM
NuGet feed push authentication issue has been fixed. You should push to a URL of form
https://ci.appveyor.com/nuget/<feed-id>/api/v2/package
. Update Account NuGet page reflects that.Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:45 AM.