Sha256: 478095d5f44f5cc1a2f20fff55a86ddd999805d8d95748c0028337986ecc3fb8

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

module Passport
  class Engine < Rails::Engine
    
    initializer "passport.authentication_hook" do |app|
      app.middleware.use Rack::Context
      app.middleware.use Passport::Filter
      app.middleware.use OpenIdAuthentication
    end
    
    initializer "passport.finalize", :after => "passport.authentication_hook" do |app|
      OpenID::Util.logger = Rails.logger
      ActionController::Base.send :include, OpenIdAuthentication
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passport-0.1.1 lib/passport/engine.rb