authentification()¶
- audfactory.authentification(url)[source]¶
Look for username and API key.
It first looks for the two environment variables
ARTIFACTORY_USERNAMEandARTIFACTORY_API_KEY.If some of them or both are missing, it tries to extract them from the
~/.artifactory_python.cfgconfig file. For that it removeshttp://orhttps://from the beginning ofurland everything that comes after/artifactory. E.g. forhttps://audeering.jfrog.io/artifactory/data-public/emodbit will look for an entry in the config file under[audeering.jfrog.io/artifactory].If it cannot find the config file or a matching entry in the config file it will set the username to
anonymousand the API key to an empty string. If your Artifactory server is configured to allow anonymous users you will be able to access the server this way.- Parameters
url – URL of Artifactory server, e.g. https://audeering.jfrog.io/artifactory
- Return type
- Returns
username and API key