Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

npm whoami should use /-/whoami, not /whoami #88

Open
othiym23 opened this issue Dec 4, 2014 · 0 comments
Open

npm whoami should use /-/whoami, not /whoami #88

othiym23 opened this issue Dec 4, 2014 · 0 comments
Labels

Comments

@othiym23
Copy link
Contributor

othiym23 commented Dec 4, 2014

For token-based auth, npm whoami makes a request to url.resolve(registryURL, '/whoami'). The only known implementer of this endpoint is npmE. As @isaacs pointed out today, this overwrites the path for any package named whoami in the registry (and a useful package by that name exists!). We need to use the /-/ path prefix instead, so /-/whoami.

First we'll need to fix the relevant endpoint in npmE, and after that's had a chance to settle, make this change in npm-registry-client (preferably before registry-2 goes live).

/cc @seldo @bcoe @mmalecki

@othiym23 othiym23 added the bug label Dec 4, 2014
rlidwka added a commit to rlidwka/sinopia that referenced this issue Dec 5, 2014
Allows to get rid of referer magic, so it's a nice change to have.

See this issue for details:
npm/npm-registry-client#88
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant