Rails.application.config.middleware.use OmniAuth::Builder do
  if Rails.env.production?
    opts = YAML.load_file(File.join(Rails.root, 'config', 'shibboleth.yml'))[Rails.env]
    provider :shibboleth, opts.symbolize_keys
    Dmptool2::Application.shibboleth_host = opts['host']
  else
    provider :developer
  end
end



Rails.application.config.middleware.use OmniAuth::Builder do
  if true #Rails.env.production?
    opts = YAML.load_file(File.join(Rails.root, 'config', 'shibboleth.yml'))[Rails.env]
    provider :shibboleth, opts.symbolize_keys
    Dmptool2::Application.shibboleth_host = opts['host']
  else
    provider :developer
  end
end



Fix up for testing - had wrong dns name.
Fix up for testing - had wrong dns name.
