Using public group projects with PHP Composer


I’d like to use a GitLab group and its projects with PHP Composer.

My composer.json:

    "repositories": [
        "type": "git",
        "url": "<MY-GROUP>"

However, when I use composer require <MY-GROUP>/<MY-PROJECT>, I get the following:

  Failed to execute git clone --mirror 'https://oauth2:***<MY-GROUP>' '/U

  Cloning into bare repository '/Users/kolja/.composer/cache/vcs/<MY-GROUP>'...
  fatal: unable to update url base from redirection:
    asked for: https://oauth2:***<MY-GROUP>/info/refs?service=git-upload-

I use Composer and GitLab with repositories in my account, and there it works. What am I doing wrong? The group and its projects are all public and have no restrictions.

Thanks for your help.