'Nexus Content Selector not working as expected

I am trying to use Content Selector to create access for a customer to my private composer repositories (using this plugin).

Here is my content selector:

format == "composer" and path =~ "/vendor/|/vendor/package-name/.*"

When I test it with the UI I get my packages:

Content Selector test

But when I do a composer require vendor/package-name I get this error:

Invalid credentials for 'https://nexus.company.com/repository/composer-private-packages/packages.json', aborting.

If I replace my Content Selector by:

    format == "composer"

Everything is working!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source