-
Notifications
You must be signed in to change notification settings - Fork 241
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
Access token generated from the "User Profile" will not work with npm and mvn install #1579
Comments
Similar problem with docker push. Also, unlike "jf rt dp" version of the command, "docker push" does not provide --user, --password, and --access_token options. I think those options should be added to "docker push" and they should override the config. |
Hi @andreygrano @SharonSbo @ventsyv
|
Hi @andreygrano and @SharonSbo |
So I am using a self-hosted version of Artifactory (7.63.5) and I am still running into issues with this. I'm not using the jfrog cli but rather npm directly and trying to authenticate using the base64 encoded identity token: Here's my .npmrc (with various fields / credentials redacted)
I try the same exact thing with the APIKey and replace that @sverdlov93 Is their a plan to support identity tokens here / if it is already supported, documentation on how to use it with npm? |
Describe the bug
When using the Access Token that was created from the User Profile in the JFrog CLI configuration the npm and mvn install will fail with the "received invalid access-token" error.
To Reproduce
Login to Artifactory as admin user
Refer to "Edit profile" in Artifactory UI
Generate An Identity Token
Copy the token and use in the JFrog CLI configuration
Test the connection to Artifactory: jf rt ping which will return OK
Create a remote npm repositry to https://registry.npmjs.org (default)
Configure the JFrog CLI to work with npm remote repository
Run npm install of any package, for example:
jf npmi prop-types
similar reproduction steps for jf mvn install, configure Artifactory to work with remote maven repository and run jf mvn install
Expected behavior
jf npm/mvn install will work as expected when using the Access Token generated from the user profile
Screenshots
Versions
Workaround
When using one of the following methods when configuring JFrog CLI to work with Artifactory the npm and mvn install will work as expected:
The text was updated successfully, but these errors were encountered: