【问题标题】:Artifactory nuget push - non-existing user (API key / access token)Artifactory nuget push - 不存在的用户(API 密钥/访问令牌)
【发布时间】:2020-03-10 08:46:29
【问题描述】:

我可以使用dotnet nuget push %WORKSPACE%\NuGetPackages\*.nupkg --source <url> --api-key <username>:<encrypted password> 将 nuget 包推送到 Artifactory。但是,我想使用 API 密钥或访问令牌推送,但我收到 403 Forbidden 试图这样做。有可能让这个工作吗?

【问题讨论】:

    标签: nuget artifactory nuget-server


    【解决方案1】:

    NuGet 协议要求 API 密钥为 username:password。您可以使用 Artifactory API 密钥而不是密码,但您仍然必须提供用户名,如 the API docs 中的第四个选项所述。

    【讨论】:

    • 由于某种原因,我没有收到任何通知。不过谢谢,我会试试看的。
    • 工作得很好。谢谢!
    猜你喜欢
    • 2016-10-29
    • 1970-01-01
    • 1970-01-01
    • 2015-06-23
    • 1970-01-01
    • 2015-04-17
    • 1970-01-01
    • 1970-01-01
    • 2014-09-12
    相关资源
    最近更新 更多