Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/ruby
require 'chef'
require 'chef/rest'
Chef::Log.debug("Authenticating via openid")
response = @rest.post_rest('openid/consumer/start', {
"openid_identifier" => "#{Chef::Config[:openid_url]}/openid/server/node/program_auth",
"submit" => "Verify"
})