Sha256: be7d3b4f475de9b5b08fa0ed6dd8f80984ad36d45e8c0fe64bcfcc669a42a443

Contents?: true

Size: 653 Bytes

Versions: 8

Compression:

Stored size: 653 Bytes

Contents

require 'omniauth-oauth2'
require 'roqua/omniauth/strategies/doorkeeper'

OmniAuth.config.logger = Rails.logger

Rails.application.config.middleware.use OmniAuth::Builder do
  case Rails.env
  when 'development', 'test'
    provider :doorkeeper,
             'b30f46f3e991d87f52f54365dda6b147d74039fd9c0336490ab41a7254702651',
             '49b42787e6fcf9d42878c62c77817a92251abf48923d8c269c9c088e66066fd2',
             client_options: {site: 'http://core.dev'}
  else
    provider :doorkeeper,
             ENV['CORE_OAUTH_CLIENT_ID'],
             ENV['CORE_OAUTH_CLIENT_SECRET'],
             client_options: {site: ENV['CORE_OAUTH_URL']}
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
roqua-core-api-0.0.16 lib/roqua/omniauth/rails_initializer.rb
roqua-core-api-0.0.15 lib/roqua/omniauth/rails_initializer.rb
roqua-core-api-0.0.14 lib/roqua/omniauth/rails_initializer.rb
roqua-core-api-0.0.13 lib/roqua/omniauth/rails_initializer.rb
roqua-core-api-0.0.12 lib/roqua/omniauth/rails_initializer.rb
roqua-core-api-0.0.11 lib/roqua/omniauth/rails_initializer.rb
roqua-core-api-0.0.10 lib/roqua/omniauth/rails_initializer.rb
roqua-core-api-0.0.9 lib/roqua/omniauth/rails_initializer.rb