To support authentication, you need to add your Artifactory credentials to your puppet.conf file:
Note: your credentials should be formatted as username:password as a Base64 encoded strings
Your Artifactory credentials, formatted username:password as Base64 encoded strings.
For example:
[main]
module_repository=https://company.jfrog.io/artifactory/api/puppet/puppet-localNote
Make sure you have an Artifactory user in order to publish modules.