Replies: 1 comment 4 replies
-
Using the Does your "other service" have to be real-time? Why not use the admin user with |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm building a private repo that will store each "users" packages in a unique scope per user, but I also need to be able to query the repo for those packages from a separate service.
I have a authentication plugin that limits access so each user can only access/publish/unpublish to their scope, but I also have a admin user that has access to everything,
I can see that making calls to
/-/all
with a users access token only returns packages that they have access to, but I'd rather not have have to keep an access token per user in the other service.Calling
/-/all
with the admin token returns all the packages in the repo. While I could filter this list it would be really inefficient especially as things grow. (I understand the list has to be filtered somewhere and it looks like the auth plugin is already doing some of this at least for access in the repo)/-/v1/search?text=@scope
works, but is a full text search so could also find things in the README.md not just the package name./-/verdaccio/data/search/@scope
looks promising, but I can't find any doc for it (pointer to it in the source would help if there is no doc for this API)Is there a better search API that will just search package names/scope?
(p.s. bonus points if it also works with the web UI disabled)
Beta Was this translation helpful? Give feedback.
All reactions