I’m currently using the file command to download dependencies from a server that does not allow anonymous access. On Jenkins, I was able to add credentials and access via environment variables to set them in the command. However, this is not desirable for end users to put credentials in plain text on their system, either in environment variables or a netrc file.
Desired behavior would be a new option for file https://cmake.org/cmake/help/v3.17/command/file.html#transfer to prompt. On the command line, it would just prompt; via the gui, it would pop up a dialog requesting credentials.