We have a Pro geoprocessing tool that will eventually be published as geoprocessing service. This tool requires Portal authentication to access secured feature services. Currently we are saving built-in Portal username and password into a config file, but I wonder if there's a way to avoid saving password as cleartext (also don't want to prompt user every time they use the GP tool or service) and handle the authentication.