Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include legacy authentication option for npm login #261

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dgboss
Copy link

@dgboss dgboss commented Jul 16, 2024

Since npm v9 there is an --auth-type flag on the npm login command. The default is web which prompts you to press Enter to open the web page of the registry you want to authenticate with. This works great if you want to authenticate with Artifactory using keycloak and your own account but does not work with Artifactory service accounts as they can't be used to login to the UI.

If you want to use an Artifactory service account to authenticate, you need to npm login --auth-type=legacy which will prompt you for a username and password.

@Pilargit12
Copy link
Contributor

Hi @caggles or advise who can you kindly help me verify this change request in our Artifactory documentation please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants