Project

General

Profile

« Previous | Next » 

Revision fceb1f89

Added by Petr Chalupa almost 12 years ago

  • ID fceb1f895c20019ad71863d23316a446c216845e

fixes #1576 - api v1 - oauth support

  • to use set and enable oauth in settings
  • correcting typo

View differences:

lib/foreman/default_settings/loader.rb
set('use_uuid_for_certificates', "Should Foreman use random UUID's for certificate signing instead of hostnames", false),
set('update_environment_from_facts', "Should Foreman update a host's environment from its facts", false)
].compact.each { |s| create s.update(:category => "Puppet")}
[ set('oauth_active', "Should foreman use OAuth for authorization in API", false),
set('oauth_consumer_key', "OAuth consumer key", 'katello'),
set('oauth_consumer_secret', "OAuth consumer secret", 'shhhh')
].compact.each { |s| create s.update(:category => "Auth")}
end
true
end

Also available in: Unified diff