You can configure authentication for remote repositories by specifying remote credentials. You can use either one of the following methods to identify yourself:
Username and password
Personal Access Token (PAT)
The advantage of using PATs is that you can strengthen your Artifactory security practices by using them for authentication, instead of using your primary credentials. For example, you can create a PAT in GitHub and then configure your remote Docker repository to point to GitHub and authenticate it by using the PAT. You can use PATs for any package type.
To specify remote credentials:
In the Administration module, select Repositories.
Click the Remote tab and open the relevant remote repository.
In the Basic tab, enter your remote credentials in the following fields:
Use one of the following methods to authenticate yourself when accessing this remote proxy:
User name and password:
Under Remote Authentication, enter a user name in the User Name field.
Enter a password in the Password/Access Token field.
Personal Access Tokens (PAT) used for HTTP authentication (Artifactory 6.18 and later):
Create the PAT in the service provider and copy the PAT to the clipboard.
In Artifactory, paste the PAT into the Password/Access Token field.
Enter a username in the Username field. When a PAT is used for authentication, an arbitrary username can be entered into this field (not applicable for npmjs), but the field must not be left empty.
Note
To access the npm registry, you must pass a valid npm registry username and generated PAT token. For more details, see this Knowledge Base article.
Enter the SSL/TLS certificate used for authentication to the remote resource for which this repository is a proxy.
Tip
Click Test to verify the certificate.
Click Save.