title: Nexus Content Selector not working as expected
body: <p>I am trying to use Content Selector to create access for a customer to my private composer repositories (using this <a href="https://github.com/sonatype-nexus-community/nexus-repository-composer" rel="nofollow noreferrer">plugin</a>).</p>
  <p>Here is my content selector:</p>
  <pre><code>format == &quot;composer&quot; and path =~ &quot;/vendor/|/vendor/package-name/.*&quot;
  </code></pre>
  <p>When I test it with the UI I get my packages:</p>
  <p><a href="https://i.stack.imgur.com/o3eus.png" rel="nofollow noreferrer">Content Selector test</a></p>
  <p>But when I do a <code>composer require vendor/package-name</code> I get this error:</p>
  <blockquote>
  <p>Invalid credentials for 'https://nexus.company.com/repository/composer-private-packages/packages.json', aborting.</p>
  </blockquote>
  <p>If I replace my Content Selector by:</p>
  <pre><code>    format == &quot;composer&quot;
  </code></pre>
  <p>Everything is working!</p>