lib/maestrano.rb in maestrano-1.0.0.pre.RC5 vs lib/maestrano.rb in maestrano-1.0.0.pre.RC6

- old
+ new

@@ -186,21 +186,22 @@ id: nil, key: nil, token: nil, version: nil, verify_ssl_certs: false, - lang: nil, #set in post_initialize - lang_version: nil #set in post_initialize + lang: nil, # set in post_initialize + lang_version: nil # set in post_initialize }) # SSO Config @sso = OpenStruct.new({ enabled: true, slo_enabled: true, creation_mode: 'real', init_path: '/maestrano/auth/saml/init', consume_path: '/maestrano/auth/saml/consume', + name_id_format: nil, # set in post_initialize idm: nil }) # WebHooks Config @webhook = OpenStruct.new({ @@ -226,10 +227,13 @@ self.api.token = "#{self.api.id}:#{self.api.key}" self.api.version = Maestrano::VERSION self.api.lang = 'ruby' self.api.lang_version = "#{RUBY_VERSION} p#{RUBY_PATCHLEVEL} (#{RUBY_RELEASE_DATE})" self.sso.idm ||= self.app.host + self.sso.name_id_format ||= Maestrano::Saml::Settings::NAMEID_PERSISTENT self.sso.slo_enabled &&= self.sso.enabled + self.connec.base_path ||= '/api/v2' unless self.environment == 'test' # Sandbox has a different endpoint + self.connec.timeout ||= 60 end # Transform legacy parameters into new parameter # style # Dummy mapping