【问题标题】:composer / satis svn repository http basic authenticationcomposer / satis svn存储库http基本认证
【发布时间】:2013-01-25 15:10:46
【问题描述】:

我正在尝试使用 satis 为我的公司创建一个作曲家包存储库。 我的 svn 存储库是通过 http (apache svn) 访问的。

我正在尝试将其添加到我的 config.json 中

{
    "name": "packages",
    "homepage": "http://packages.example.org",
    "repositories": [
        { "type": "svn",
          "url": "myrepourl" 
       }

    ],
    "require-all": true
}

问题是我无法在存储库中进行身份验证:

Repository could  not be processed, svn: OPTIONS of  authorization failed. basic authentication rejected.

如何将用户名/密码传递给 satis?

谢谢

【问题讨论】:

    标签: authentication svn satis mod-dav-svn


    【解决方案1】:

    根据composer documentation,您必须将您的用户密钥文件或证书放在您的项目中,而不是在满足配置中:

    使用 SSH:

    {
        "repositories": [
            {
                "type": "composer",
                "url": "ssh2.sftp://example.org",
                "options": {
                    "ssh2": {
                        "username": "composer",
                        "pubkey_file": "/home/composer/.ssh/id_rsa.pub",
                        "privkey_file": "/home/composer/.ssh/id_rsa"
                    }
                }
            }
        ]
    }
    

    使用证书:

    {
        "repositories": [
            {
                "type": "composer",
                "url": "https://example.org",
                "options": {
                    "ssl": {
                        "cert_file": "/home/composer/.ssl/composer.pem",
                    }
                }
            }
        ]
    }
    

    【讨论】:

      猜你喜欢
      • 2013-10-08
      • 1970-01-01
      • 2016-07-27
      • 2012-01-06
      • 1970-01-01
      • 2012-01-02
      • 2011-05-06
      • 1970-01-01
      • 2011-05-03
      相关资源
      最近更新 更多