Topic: auth.json data is ignored

Composer from "composer-1.6.3-1.fc27.remi.noarch" ignores auth.json file and asks for repo password.

1.6.3 from official phar works

Reproducible for both ~/.config/composer/auth.json and project's auth.json

composer install -vvv shows that both files are read but login/pass are still not injected into the repo urls

I'm using http-basic on some private repos

Re: auth.json data is ignored

Hmm... don't know how to reproduce this....

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: auth.json data is ignored

You can create a private repo in bitbucket or gitlab (in my case it was a private instance of gitlab), put some package there and add it as a repo

something like this:

{
    "repositories": [
        {
            "url": "https://gitlab.com/my-username/my-package",
            "type": "git"
        }
    ],
    "require": {
        "my-username/my-package": "dev-master"
    }
}

my-username/my-package should be in a private repo. then put your login/pwd to auth.json and try to composer update

Re: auth.json data is ignored

Thanks,

I will have a look later (after week-end offline)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: auth.json data is ignored

Ok, finally found some spare time to dig on this

Can you please try changing  /usr/share/php/Composer/autoload.php
Delete all lines with Symfony3 or Symfony4
Ensure you have php-symfony-console, php-symfony-finder, php-symfony-filesystem and php-symfony-process installed

Despite upstream claims it should work with symfony 3 or 4, it seems to only works with symfony 2 (from my tests)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: auth.json data is ignored

Or simply try composer-1.6.3-3.fc27.remi which includes the fix (just puhsed to the repo)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: auth.json data is ignored

Reported upstream as https://github.com/composer/composer/issues/7124

As updated  in Fedora official repository
https://bodhi.fedoraproject.org/updates … 027907ff77

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi