Sha256: 26b3094ecaec047a301a9d12bf5cae7e4b04d134a4003a876f86f1758c7769f9

Contents?: true

Size: 675 Bytes

Versions: 2

Compression:

Stored size: 675 Bytes

Contents

module SsoClyent
  class Engine < ::Rails::Engine
    isolate_namespace SsoClyent

    config.generators do |g|
          g.test_framework :rspec, :view_specs => false
    end

    config.sso_clyent = ActiveSupport::OrderedOptions.new

    initializer "sso_client.configure" do |app|
      SsoClyent.configure(app.config.sso_clyent)

      require 'sso_clyent/omniauth/strategies/sso'

      app.config.middleware.use OmniAuth::Builder do
        provider :sso, SsoClyent.provyder[:app_id], SsoClyent.provyder[:app_secret],
          :callback_path => "#{SsoClyent.path}/auth/sso/callback",
          :path_prefix => "#{SsoClyent.path}/auth"
      end
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sso_clyent-0.0.2 lib/sso_clyent/engine.rb
sso_clyent-0.0.1 lib/sso_clyent/engine.rb