【问题标题】:How to use authentication with Nexus hosted Bower without plain text credentials如何在没有纯文本凭据的情况下对 Nexus 托管的 Bower 使用身份验证
【发布时间】:2019-07-23 09:45:31
【问题描述】:

我们将 Bower 托管在 Nexus 3 存储库中。我们的.bowerrc 文件如下所示:

{
    "directory": "bower_components",
    "registry": {
        "search": [
            "https://<host>/nexus/repository/bower/"
        ]
    },
    "resolvers": [ "bower-nexus3-resolver" ]
}

到目前为止,它具有匿名访问权限,因此运行良好。但是,Nexus 现在已经启用了身份验证,因此我们需要某种身份验证方式。

我已经阅读了some documentation,它表明我们需要添加

{
  "nexus" : {
    "username" : "myusername",
    "password" : "mypassword"
  }
} 

但这使用纯文本凭据。有没有办法在没有纯文本凭据的情况下使用身份验证?

【问题讨论】:

    标签: bower nexus nexus3 private-bower


    【解决方案1】:

    专业(许可)客户可以使用here 记录的用户令牌。

    对于 OSS 用户,我知道这听起来可能有点像 NXRM 不在乎,但那里显示的内容来自 Bower 而不是来自 NXRM,因此保护它实际上(在此示例中)是 Bower 更改。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-09-30
      • 2022-11-30
      • 2016-10-07
      • 2022-01-09
      • 2018-07-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多