如何限制对 NuGet 提要的访问? [英] How to restrict access to a NuGet feed?
问题描述
我创建了一个 NuGet 服务器来托管我们的专有包.
I created a NuGet Server in order to host our proprietary packages.
如何限制对 NuGet 服务器的访问以只允许受信任的人下载我们的 DLL?
How can I restrict access to the NuGet server in order to allow only trusted people to download our DLL ?
推荐答案
代理身份验证已在 NuGet v1.4 中添加.我们正在以此为基础在 NuGet v1.5 中支持经过身份验证的存储库.
Proxy authentication was added in NuGet v1.4. We are building on this to support authenticated repositories in NuGet v1.5.
与此同时,您可以按照其他答案中的建议限制 IP 访问.您还可以创建一个客户路由处理程序,允许您为每个嵌入其身份验证令牌的用户创建自定义"URL.DevExpress 目前就是这样做的.
In the meantime, you can either restrict access by IP as suggested in the other answer. You can also create a customer route handler that allow you to create "custom" URLs for each user that embeds their authentication token. This is how DevExpress currently does it.
有关详细信息,请参阅 http://nuget.codeplex.com/discussions/258457.
See http://nuget.codeplex.com/discussions/258457 for more info.
这篇关于如何限制对 NuGet 提要的访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!