Sha256: 5b7069402b69fbab0a890143fd6565387c1242fad3b347fa577f28fcdec5b083

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

require 'omniauth'
require 'omniauth-icis'

module IdentityClient
  class Engine < ::Rails::Engine
    isolate_namespace IdentityClient


    initializer 'omniauth-icis' do
      config.middleware.use OmniAuth::Builder do
        provider :icis, ENV['CLIENT_ID'], ENV['CLIENT_SECRET']
      end
    end

    initializer  "myengine.load_helpers" do
      ActiveSupport.on_load(:action_controller) do
        include IdentityClient::ApplicationHelper
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
identity_client-0.1.3 lib/identity_client/engine.rb
identity_client-0.1.2 lib/identity_client/engine.rb
identity_client-0.1.1 lib/identity_client/engine.rb
identity_client-0.1.0 lib/identity_client/engine.rb