Externalize credentials to a resource file.