This example is based on the code in the connection_workflow.rb sample file. The source file is located in the following vCloud Suite SDK for Ruby directory: client/samples/lib/sample/workflow/connection_workflow.rb.
This example uses the steps that are described in the Retrieve a SAML Token procedure.
require 'sso' require 'vapi' require 'com/vmware/cis' sso = SSO::Connection.new($my_sso_url) sso.login($my_sso_username, $my_sso_password) $my_saml_token = sso.request_bearer_token