audeering / audbackend

Manage file storage on different backends
https://audeering.github.io/audbackend/
Other
3 stars 0 forks source link

Add public authentication() method to Artifactory backend #161

Closed hagenw closed 5 months ago

hagenw commented 9 months ago

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 commented 5 months ago

Implemented in #215