0
0

More than 5 years have passed since last update.

BASIC認証あり Composerサーバと接続

Posted at

社内でcomposerサーバを立ている場合は以下のようにすればアクセスできる。

    { "type": "composer", "url": "http://ユーザ名:パスワード@composerサーバ名" }

でもこれだといろいろと問題が起きそうなのでcomposer.jsonと同じフォルダにauth.jsonを配置するとユーザやパスワードのファイルがわけれる。

auth.json
{
    "http-basic": {
        "repo.example1.org": {
            "username": "my-username1",
            "password": "my-secret-password1"
        },
        "repo.example2.org": {
            "username": "my-username2",
            "password": "my-secret-password2"
        }
    }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0