{"action":"opened","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/3396","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/3396/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/3396/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/3396/events","html_url":"https://github.com/NuGet/Home/issues/3396","id":174434841,"number":3396,"title":"nuget & artifactory","user":{"login":"jopdam","id":8274230,"avatar_url":"https://avatars.githubusercontent.com/u/8274230?v=3","gravatar_id":"","url":"https://api.github.com/users/jopdam","html_url":"https://github.com/jopdam","followers_url":"https://api.github.com/users/jopdam/followers","following_url":"https://api.github.com/users/jopdam/following{/other_user}","gists_url":"https://api.github.com/users/jopdam/gists{/gist_id}","starred_url":"https://api.github.com/users/jopdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jopdam/subscriptions","organizations_url":"https://api.github.com/users/jopdam/orgs","repos_url":"https://api.github.com/users/jopdam/repos","events_url":"https://api.github.com/users/jopdam/events{/privacy}","received_events_url":"https://api.github.com/users/jopdam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-01T04:36:40Z","updated_at":"2016-09-01T04:36:40Z","closed_at":null,"body":"Goodmorning everyone (it is morning here).\r\n\r\nI am hoping you guys and/or ladies can help me with an issue I am facing.\r\nI am trying to setup nuget client to use an internally hosted nuget feed on a private artifactory repository (Specific users are allowed to read and/or write)\r\n\r\nWe got an api key (based on a username:password combination) from the internal artifactory team.\r\n\r\nWe pushed a nuget package, no problems. See request and response.\r\n#########\r\nPUT https://&lt;&lt;ROOTURL&gt;&gt;/artifactory/api/nuget/releases_nuget_TFS_Acceptance/ HTTP/1.1\r\nX-NuGet-ApiKey: &lt;&lt;USERNAME&gt;&gt;:&lt;&lt;PASSWORD&gt;&gt;\r\nuser-agent: NuGet Command Line/3.4.4.1321 (Microsoft Windows NT 6.1.7601 Service Pack 1)\r\nContent-Type: multipart/form-data; boundary=\"fa51ab17-a192-4650-ad8d-dded8f77d839\"\r\nHost: &lt;&lt;ROOTURL&gt;&gt;\r\nContent-Length: 1603715\r\nExpect: 100-continue\r\nAccept-Encoding: gzip, deflate\r\nConnection: Keep-Alive\r\n\r\nHTTP/1.1 201 Created\r\nDate: Thu, 01 Sep 2016 03:56:45 GMT\r\nContent-Type: text/plain\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nServer: Artifactory/4.11.1\r\nX-Artifactory-Id: 0000000000000000:-0000000000000000000:-8000\r\n\r\nSuccessfully published NuPkg to: Newtonsoft.Json.9.0.1.nupkg\r\n#########\r\n\r\nNow when I try to get the nuget package it does not find anything (see missing X-NuGet-ApiKey header). See request and response.\r\n#########\r\nGET https://&lt;&lt;ROOTURL&gt;&gt;/artifactory/api/nuget/releases_nuget_TFS_Acceptance/FindPackagesById()?id='newtonsoft.json' HTTP/1.1\r\nAccept: application/atom+xml, application/xml\r\nuser-agent: NuGet Command Line/3.4.4.1321 (Microsoft Windows NT 6.1.7601 Service Pack 1)\r\nHost: &lt;&lt;ROOTURL&gt;&gt;\r\nAccept-Encoding: gzip, deflate\r\n\r\nHTTP/1.1 200 OK\r\nDate: Thu, 01 Sep 2016 03:57:53 GMT\r\nContent-Type: application/atom+xml;charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nServer: Artifactory/4.11.1\r\nX-Artifactory-Id: 0000000000000000:-0000000000000000000:-8000\r\nDataServiceVersion: 2.0\r\n\r\n&lt;?xml version='1.0' encoding='UTF-8'?&gt;\r\n&lt;feed xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\" xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\" xmlns=\"http://www.w3.org/2005/Atom\" xml:base=\"https://&lt;&lt;ROOTURL&gt;&gt;/artifactory/api/nuget/releases_nuget_TFS_Acceptance/\"&gt;\r\n  &lt;title type=\"text\"&gt;&lt;/title&gt;\r\n  &lt;id&gt;http://schemas.datacontract.org/2004/07/&lt;/id&gt;\r\n  &lt;updated&gt;2016-09-01T03:57:53Z&lt;/updated&gt;\r\n  &lt;link rel=\"self\" title=\"FindPackagesById\" href=\"FindPackagesById\"/&gt;\r\n&lt;/feed&gt;\r\n#########\r\n\r\nWhen I add the X-NuGet-ApiKey header (using fiddler), the response contains information about the package. See request and response.\r\n#########\r\nGET https://&lt;&lt;ROOTURL&gt;&gt;/artifactory/api/nuget/releases_nuget_TFS_Acceptance/FindPackagesById()?id='newtonsoft.json' HTTP/1.1\r\nAccept: application/atom+xml, application/xml\r\nuser-agent: NuGet Command Line/3.4.4.1321 (Microsoft Windows NT 6.1.7601 Service Pack 1)\r\nHost: &lt;&lt;ROOTURL&gt;&gt;\r\nAccept-Encoding: gzip, deflate\r\nX-NuGet-ApiKey: &lt;&lt;USERNAME&gt;&gt;:&lt;&lt;PASSWORD&gt;&gt;\r\n\r\nHTTP/1.1 200 OK\r\nDate: Thu, 01 Sep 2016 03:58:58 GMT\r\nContent-Type: application/atom+xml;charset=utf-8\r\nTransfer-Encoding: chunked\r\nConnection: keep-alive\r\nServer: Artifactory/4.11.1\r\nX-Artifactory-Id: 0000000000000000:-0000000000000000000:-8000\r\nDataServiceVersion: 2.0\r\n\r\n&lt;?xml version='1.0' encoding='UTF-8'?&gt;\r\n&lt;feed xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\" xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\" xmlns=\"http://www.w3.org/2005/Atom\" xml:base=\"https://&lt;&lt;ROOTURL&gt;&gt;/artifactory/api/nuget/releases_nuget_TFS_Acceptance/\"&gt;\r\n  &lt;title type=\"text\"&gt;&lt;/title&gt;\r\n  &lt;id&gt;http://schemas.datacontract.org/2004/07/&lt;/id&gt;\r\n  &lt;updated&gt;2016-09-01T03:58:58Z&lt;/updated&gt;\r\n  &lt;link rel=\"self\" title=\"FindPackagesById\" href=\"FindPackagesById\"/&gt;\r\n  &lt;entry&gt;\r\n    &lt;id&gt;https://&lt;&lt;ROOTURL&gt;&gt;/artifactory/api/nuget/releases_nuget_TFS_Acceptance/Packages(Id='Newtonsoft.Json',Version='9.0.1')&lt;/id&gt;\r\n    &lt;title type=\"text\"&gt;Newtonsoft.Json&lt;/title&gt;\r\n    &lt;summary type=\"text\"&gt;Json.NET is a popular high-performance JSON framework for .NET&lt;/summary&gt;\r\n    &lt;updated&gt;2016-09-01T05:56:45Z&lt;/updated&gt;\r\n    &lt;author&gt;\r\n      &lt;name&gt;James Newton-King&lt;/name&gt;\r\n    &lt;/author&gt;\r\n    &lt;link rel=\"edit\" title=\"V2FeedPackage\" href=\"Packages(Id='Newtonsoft.Json',Version='9.0.1')\"/&gt;\r\n    &lt;link rel=\"self\" title=\"V2FeedPackage\" href=\"Packages(Id='Newtonsoft.Json',Version='9.0.1')\"/&gt;\r\n    &lt;category term=\"NuGetGallery.OData.V2FeedPackage\" scheme=\"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme\"/&gt;\r\n    &lt;content type=\"application/zip\" src=\"https://&lt;&lt;ROOTURL&gt;&gt;/artifactory/api/nuget/releases_nuget_TFS_Acceptance/Download/Newtonsoft.Json/9.0.1\"/&gt;\r\n    &lt;m:properties xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\" xmlns:d=\"http://schemas.microsoft.com/ado/2007/08/dataservices\"&gt;\r\n      &lt;d:lastUpdated&gt;2016-09-01T05:56:45&lt;/d:lastUpdated&gt;\r\n      &lt;d:Version&gt;9.0.1&lt;/d:Version&gt;\r\n      &lt;d:Created m:type=\"Edm.DateTime\"&gt;2016-09-01T05:56:45&lt;/d:Created&gt;\r\n      &lt;d:Dependencies&gt;System.IO:4.1.0:.NETStandard1.0|System.Runtime:4.1.0:.NETStandard1.0|System.Threading.Tasks:4.0.11:.NETStandard1.0|::.NETFramework4.5|::.NETFramework3.5|::.NETFramework4.0|System.Globalization:4.0.11:.NETStandard1.0|::.NETFramework2.0|System.Collections:4.0.11:.NETStandard1.0|System.Reflection.Extensions:4.0.1:.NETStandard1.0|System.Runtime.Extensions:4.1.0:.NETStandard1.0|System.Runtime.Serialization.Primitives:4.1.1:.NETStandard1.0|System.Text.Encoding:4.0.11:.NETStandard1.0|System.Xml.XDocument:4.0.11:.NETStandard1.0|System.Text.Encoding.Extensions:4.0.11:.NETStandard1.0|System.ObjectModel:4.0.12:.NETStandard1.0|System.Dynamic.Runtime:4.0.11:.NETStandard1.0|System.Xml.ReaderWriter:4.0.11:.NETStandard1.0|::.NETPortable4.5-Profile259|Microsoft.CSharp:4.0.1:.NETStandard1.0|System.Linq:4.1.0:.NETStandard1.0|System.Reflection:4.1.0:.NETStandard1.0|System.Linq.Expressions:4.1.0:.NETStandard1.0|System.Diagnostics.Debug:4.0.11:.NETStandard1.0|System.Text.RegularExpressions:4.1.0:.NETStandard1.0|System.Threading:4.0.11:.NETStandard1.0|::.NETPortable4.0-Profile328|System.Resources.ResourceManager:4.0.1:.NETStandard1.0&lt;/d:Dependencies&gt;\r\n      &lt;d:Description&gt;Json.NET is a popular high-performance JSON framework for .NET&lt;/d:Description&gt;\r\n      &lt;d:DownloadCount m:type=\"Edm.Int32\"&gt;0&lt;/d:DownloadCount&gt;\r\n      &lt;d:IconUrl&gt;http://www.newtonsoft.com/content/images/nugeticon.png&lt;/d:IconUrl&gt;\r\n      &lt;d:IsLatestVersion m:type=\"Edm.Boolean\"&gt;true&lt;/d:IsLatestVersion&gt;\r\n      &lt;d:IsAbsoluteLatestVersion m:type=\"Edm.Boolean\"&gt;true&lt;/d:IsAbsoluteLatestVersion&gt;\r\n      &lt;d:IsPrerelease m:type=\"Edm.Boolean\"&gt;false&lt;/d:IsPrerelease&gt;\r\n      &lt;d:Language m:null=\"true\"/&gt;\r\n      &lt;d:Published m:type=\"Edm.DateTime\"&gt;2016-09-01T05:56:45&lt;/d:Published&gt;\r\n      &lt;d:LicenseUrl&gt;https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md&lt;/d:LicenseUrl&gt;\r\n      &lt;d:PackageHash&gt;U82mHQSKaIk+lpSVCbWYKNavmNH1i5xrExDEquU1i6I5pV6UMOqRnJRSlKO3cMPfcpp0RgDY+8jUXHdQ4IfXvw==&lt;/d:PackageHash&gt;\r\n      &lt;d:PackageHashAlgorithm&gt;SHA512&lt;/d:PackageHashAlgorithm&gt;\r\n      &lt;d:PackageSize m:type=\"Edm.Int64\"&gt;1603487&lt;/d:PackageSize&gt;\r\n      &lt;d:ProjectUrl&gt;http://www.newtonsoft.com/json\r\n&lt;/d:ProjectUrl&gt;\r\n      &lt;d:RequireLicenseAcceptance m:type=\"Edm.Boolean\"&gt;false&lt;/d:RequireLicenseAcceptance&gt;\r\n      &lt;d:Tags&gt;json&lt;/d:Tags&gt;\r\n      &lt;d:Title&gt;Json.NET&lt;/d:Title&gt;\r\n      &lt;d:VersionDownloadCount m:type=\"Edm.Int32\"&gt;0&lt;/d:VersionDownloadCount&gt;\r\n      &lt;d:Authors&gt;James Newton-King&lt;/d:Authors&gt;\r\n      &lt;d:MinClientVersion m:null=\"true\"/&gt;\r\n    &lt;/m:properties&gt;\r\n  &lt;/entry&gt;\r\n&lt;/feed&gt;\r\n#########\r\n\r\nSo to my question: Is there a way to add an api key to the list, find package, etc requests?\r\n\r\nI hope you guys can help me out with this.\r\nTnx.\r\n"}}
{"actor":{"display_login":"jopdam"}}