Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

How to use the Credential object?

$
0
0

I had a requirement to create a password confirmation form in vCO. I detailed what I came up with here:

 

http://www.jonathanmedd.net/2015/01/presenting-a-password-confirmation-form-in-vco-vro.html

 

It was suggested in the comments that:

 

"A better way would be to use an input of type “credential” (which does include natively the confirm password check)."

 

While the credential object solves the problem of the password confirmation very nicely, it introduces a new issue in that I am struggling to work with its content when working in the workflow having used it as an input.

 

I tried to use the credential object once before, but had issues with the password property. Once inside the workflow the password property does not seem to be available. The API explorer for the password property states “[Deprecated]Passwords are not available in scripting”. For example, say I want to use the credentials with the ‘Run Program in Guest’ workflow, I need to supply a username (String) and password (SecureString), but just picking out the username and password properties of the credential object fails to work. I can confirm in the workflow by using the checkPassword method that the password matches a known value. However, when trying to use the password property and assign it to another workflow requiring a password authentication always fails.

 

Does anybody have any examples of how to use the credential object in terms of working with the password inside the workflow in scriptable tasks or other workflows?

 

Thanks :-)


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>