Configure Basic Authentication for Custom Artifactory Location
You require to configure Smart Agent to use basic authentication if your HTTP server requests authentication. When you configure Smart Agent to use basic authentication, it communicates with the HTTP sever, such as Nexus, Artifactory, or any custom HTTP server.
To configure basic authentication, include the following variables in the
[TaskConfig] config.ini
:
-
UserPortalUserName
-
UserPortalPassword
-
UserPortalAuth
For example:
[TaskConfig]
NativeEnable = true
UserPortalUserName = <username>
UserPortalPassword = <user-password>
UserPortalAuth = basic
If you are using Smart Agent CLI, specify the variables before running the appd:
sudo env ENABLE_CUSTOM_HTTP=true CUSTOM_HTTP_USERNAME=<username> CUSTOM_HTTP_PASSWORD=<password> ./appd install …
You can specify the agent_source_location:
sudo env ENABLE_CUSTOM_HTTP=true CUSTOM_HTTP_USERNAME=<username> CUSTOM_HTTP_PASSWORD=<password> .
/appd install <agent-type> —extra-vars agent_source_location=<path-to-agent-zip-from-custom-url>