Nuget 服务器设置
我正在尝试在我的公司设置一个私人 nuget 服务器,并且会有不同的人使用它。
我注意到 web.config 中有一个条目用于设置用于发布包的共享 API 密钥。
有没有办法为每个用户设置不同的 api 密钥?谢谢。
I am trying to setup a private nuget server in my company, and there will be different group of people using it.
I noticed that there is an entry in web.config to set a shared API key for publishing an package.
Is there a way of setting up different api keys for every user? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
创建 API 密钥的最简单方法是要求每个用户通过 Web 前端进行注册。
说明基本上如下: http: //haacked.com/archive/2011/01/12/uploading-packages-to-the-nuget-gallery.aspx 尽管用户当然会使用内部URL,而不是 http://nuget.org/
减少您的工作量,用户可以获得 NuGet Gallery 的简介!
The easiest way of creating API keys is to ask each user to register themselves via the web front-end.
The instructions are basically those here: http://haacked.com/archive/2011/01/12/uploading-packages-to-the-nuget-gallery.aspx although of course the users will use an internal URL, not http://nuget.org/
Less work for you, and users get an introduction to NuGet Gallery!
如果您希望像公共 NuGet 库那样为每个用户拥有 API 密钥,则需要运行自己的内部 NuGet 库。 NuGet 文档中的说明提供了进行此设置的演练。它使用果园作为画廊。
If you want to have API keys for each user like the public NuGet gallery does, you'll need to run your own internal NuGet gallery. The instructions in NuGet's documentation has a walkthrough of getting this set up. It uses Orchard for the gallery.
仅供参考,您还可以省去麻烦,使用 3 个基于订阅的计划之一(或便宜的 企业计划可能听起来对您有用)。默认情况下,MyGet 为每个用户提供自己的个人 API 密钥。还有一个免费的公共计划。
Just FYI, you could also save yourself the trouble and get you a private MyGet feed using one of the 3 subscription based plans (or the cheap Enterprise Plan might sound useful to you). MyGet by default gives every user his own personal API key. There's also a free public plan.