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

Connecting to Artifactory using API Token instead of Password #25

Open
Rampai94 opened this issue Sep 26, 2023 · 5 comments
Open

Connecting to Artifactory using API Token instead of Password #25

Rampai94 opened this issue Sep 26, 2023 · 5 comments

Comments

@Rampai94
Copy link

Hi,

Is it possible to add an enhancement to connect to Artifactory using API Token instead of Password?

Thanks,
Ram

@kwin
Copy link
Member

kwin commented Sep 26, 2023

Sure, are you able to raise a PR for that?

But I am not sure there is really something missing, because API token can be transparently used as password if I understand it correctly from https://jfrog.com/help/r/jfrog-platform-administration-documentation/basic-authentication.

@Rampai94
Copy link
Author

Rampai94 commented Sep 28, 2023

Thank you @kwin. At high level, it looks like for API token there is a need to generate authorization header and pass it instead of a password.

Basic authentication:
curl --location 'https://MVN_SETTINGS_REPO/path/to/artifact' --header 'Authorization: Basic '

Bearer Token:
curl --location 'https://MVN_SETTINGS_REPO/path/to/artifact' --header 'Authorization: Bearer '

@Rampai94
Copy link
Author

Am checking in local to see if I can submit a Pull request for this. Will keep you posted.

@Rampai94
Copy link
Author

Rampai94 commented Oct 2, 2023

Please review this - #26

@kwin
Copy link
Member

kwin commented Oct 13, 2023

According to https://jfrog.com/help/r/jfrog-platform-administration-documentation/basic-authentication you can use API Token transparently via Basic Auth (no need to use a Bearer token). @Rampai94 Can you explain why this does not work for you?

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

No branches or pull requests

2 participants