-
Notifications
You must be signed in to change notification settings - Fork 54
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
API Key #47
Comments
Ok, I have to look at this in future. |
Has there been any attempts at adding this enhancement? And if not, any suggestions as to where to start looking to implement this? I am fairly unfamiliar with the source of the project, but would still like to assist in adding this feature. |
No any attempts/PRs. You can start from Artifactory docs like https://www.jfrog.com/confluence/display/RTF/Updating+Your+Profile#UpdatingYourProfile-APIKey |
I was actually able to deploy a file by using my API key as a password. So the API key is technically partially supported. |
@mitjmcc Using API key instead of password inside ~/.artifactory_python.cfg not working for me. |
I was able to use my API key by adding it as the password in the auth argument for ArtifactoryPath. |
My issue turned out to be due to the fact that the module is very exacting in how it expects the url in the config file to be represented. I had used This seems to be due to the way that the module parses and compares urls. After correcting this issue, I was able to use the API key as the password. |
api key should add to requests headers ,eg: |
API KEY supported in https://github.com/devopshq/artifactory#authentication python -mpip install dohq-artifactory
from artifactory import ArtifactoryPath
path = ArtifactoryPath(
"http://my-artifactory/artifactory/myrepo/restricted-path",
apikey='MY_API_KEY') |
It would be great if this supported the API key in addition to username/pw
The text was updated successfully, but these errors were encountered: