I’m trying to figure out how to use
npm login with my Artifactory Cloud registry
The problem is that in Artifactory users have usernames from Azure AD so user names are emails (they contain @ character)
npm login doesn’t seem to like it. I tried on npm 6.9.0
I created a local user in Artifactory and npm obtained a token successfully but for normal users (which need to generate token-as-password which is complex enough) it’s not even possible to type their login.
Changing the user name convention is out of question in the organisation of course.
There’s still a way to use Artifactory for given scope by doing
curl -u<LOGIN>:<CREDENTIAL> http://<ACCOUNT_NAME>.jfrog.io/<ACCOUNT_NAME>/api/npm/<REPO_NAME>/auth/<SCOPE>
but it generates login+password credential which is less desirable
Did anyone have such problem before, and what’s off course more important: did you manage to solve it?