我正在尝试使用satis为我的公司创建一个composer包存储库。我的svn存储库是通过http (apache svn)访问的。
我正在尝试将此添加到我的config.json中
{
"name": "packages",
"homepage": "http://packages.example.org",
"repositories": [
{ "type": "svn",
"url": "myrepourl"
}
],
"require-all": true
}THe的问题是我无法在存储库中进行身份验证:
Repository could not be processed, svn: OPTIONS of authorization failed. basic authentication rejected.如何将用户名/密码传递给satis?
谢谢
发布于 2013-03-05 17:18:55
根据composer documentation的说法,您必须将用户密钥文件或证书放在项目中,而不是放在satis配置中:
使用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",
}
}
}
]
}https://stackoverflow.com/questions/14524629
复制相似问题