To do this, we would need to modify the access.config.latest.yml file located under $JFROG_HOME/artifactory/var/etc/access folder. Then we will need to edit the default-expiry-internal value under the token section, which is set to 3600 seconds by default. If by chance we do not see the token section or default-expiry-internal in the YAML file, then the default configuration is being used and we would need to add it:
Once added, save the modified access.config.latest.yml as access.config.import.yml. Lastly, perform a restart of Artifactory, which will restart the Access service, so that it will load the values in access.config.import.yml with the newly updated configuration.
security: . . . token: default-expiry-internal: 172800 # expiry period (seconds)- here set for 2 days
Once added, save the modified access.config.latest.yml as access.config.import.yml. Lastly, perform a restart of Artifactory, which will restart the Access service, so that it will load the values in access.config.import.yml with the newly updated configuration.