Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 552 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 552 Bytes

OmniAuth Datadog

Installation

gem 'omniauth-datadog'

Basic Usage

use OmniAuth::Builder do
  provider :datadog,
    ENV['DATADOG_ID'],
    ENV['DATADOG_SECRET'],
    scope: 'api_keys_write'
end

Basic Usage Rails

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