Using the latest version?
JFrog Container Registry Guide
Authentication for davfs2 Clients
Davfs2 does not use preemptive authentication. Therefore, in order to authenticate using the user credentials, the client must be authenticated using two requests. The first request is sent without credentials, and receives a 401 challenge in response. Then, a second request is sent, this time with the credentials.
Anonymous access with Artifactory
JFrog Container Registry may be configured to allow anonymous access and it will therefore accept requests without authentication.
In this case, JFrog Container Registry will not respond with a 401 challenge and you will get file access with anonymous user permissions which may be less than your own user permissions.
To access your repository through JFrog Container Registry with your full user permissions you need add an authorization header to the client configuration.
This way, the requests sent to JFrog Container Registry will be authenticated and there is no need to receive a 401 challenge and respond with a second request.
Thus you are given anonymous access to JFrog Container Registry, and yet can still authenticate with your own credentials.
This can be done as follows:
Encode your username and password credentials in base64 using the following Groovy script:
Groovy scriptBasic ${”username:password".bytes.encodeBase64()}
Edit the file
/etc/davfs2/davfs2.conf
or~/.davfs2/davfs2.conf
and add the encoded credentials to the authorization header as follows:Adding authorization headeradd_header Authorization “Basic c2hheTpwYXNzd29yZA==”
Authentication for Windows and other WebDAV clients
We suggest utilizing a tool such as Cyberduck (Open Source) when using Windows (see the note below) with WebDAV shared JFrog Container Registry repositories.
Limitation
Although the use of Windows WebDAV/WebClient components to map/mount a Windows Drive for a WebDAV shared JFrog Container Registry does provide a listing of the files - other operations such as copy/move operations are utilizing WebDAV commands which are not supported by JFrog Container Registry.
Overview
Content Tools