We use Secret Server to manage passwords and I'd like for vRO to be able to call out and get various passwords instead of embedding them in the workflows or prompting for them. Can someone give me a hint at how to convert this standard javascript into something vRO will run?
<!DOCTYPE html><html><head> <title>SOAP Javascript Test</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script></head><body> <script type="text/javascript"> $(function(){ var username= 'j@c.com'; var password= 'password1'; var orgCode= ''; var domain= ''; function getSecret(mytoken, secretid){ $.ajax({ type: 'POST', url: 'http://localhost/ihawu/webservices/SSWebService.asmx/GetSecret', contentType: 'application/json; charset=utf-8', data: JSON.stringify({ 'token': mytoken, 'secretId': secretid, 'loadSettingsAndPermissions': false, codeResponses: [] }), dataType: 'json', success: function (data) { alert(data.d.Secret.Id); alert(data.d.Secret.Name); }, error: function (xhr, msg) { alert('error ' + msg); }}); } $.ajax({ type: 'POST', url: 'http://localhost/ihawu/webservices/SSWebService.asmx/Authenticate', contentType: 'application/json; charset=utf-8', data: JSON.stringify({ 'username': username, 'password': password, 'organization': orgCode, 'domain': domain}), dataType: 'json', success: function(data) { alert('token: ' + data.d.Token); var secretId = 9; //this is hard coded for my example!! getSecret(data.d.Token, secretId); }, error: function(xhr, msg) { alert('error ' + msg); } }); }); </script></body></html>