next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

How to access /router/translate-path without anonymous content access

Open Vacilando opened this issue 1 year ago • 0 comments

Package

next v1.6.3 (Drupal module)

Ask the question

We work on a D10 site that has "View published content" disabled for Anonymous users.

JSON API data is retrieved fine thanks to a key set up using https://www.drupal.org/project/key_auth for particular API user.

However, calls to /router/translate-path do not work.

  • If key_auth is active, it returns "The used authentication method is not allowed on this route."
  • If key_auth is not active, it returns "The 'access content' permission is required."

With what kind of authentication - can we query /router/translate-path for content that is not open to anonymous users?

Vacilando avatar Sep 26 '24 17:09 Vacilando