gem 'omniauth-datadog'
use OmniAuth::Builder do
provider :datadog,
ENV['DATADOG_ID'],
ENV['DATADOG_SECRET'],
scope: 'api_keys_write'
end
In config/initializers/datadog.rb
Rails.application.config.middleware.use OmniAuth::Builder do
provider :datadog,
Rails.application.credentials.omniauth[:datadog][:id],
Rails.application.credentials.omniauth[:datadog][:secret],
scope: 'api_keys_write <other_scope>'
end