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

Add public authentication() method to Artifactory backend #161

Closed
hagenw opened this issue Dec 21, 2023 · 1 comment
Closed

Add public authentication() method to Artifactory backend #161

hagenw opened this issue Dec 21, 2023 · 1 comment

Comments

@hagenw
Copy link
Member

hagenw commented Dec 21, 2023

In order to deprecate the audfactory package we should add the private function audbackend.core.artifactory._authentication() as a public class method.

username, password = audbackend.Artifactory.authentication(host)

This would a user allow to test which username and password would be used to authenticate with the host,
useful for debugging authentication issues, see https://audeering.github.io/audfactory/usage.html#authentication.
And it would allow to get the username, password needed for rest API requests, as in audfactory.rest_api_get():

    username, apikey = authentification(url)
    return requests.get(url, auth=(username, apikey))
@frankenjoe
Copy link
Collaborator

Implemented in #215

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