Sha256: 5fc92de51f5b33e5ffb0e177e709480072d1e85488bfba62d86cf0c3e11aceb2

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

require "authlogic-connect"

# copied from open_id_authentication plugin on github

# this is the Rails 2.x equivalent.
# Rails 3 equivalent is in authlogic_connect/engine.rb
if Rails.version < '3'
  config.gem 'rack-openid', :lib => 'rack/openid', :version => '>=0.2.1'
end

require 'open_id_authentication'

config.middleware.use AuthlogicConnect::CallbackFilter
config.middleware.use OpenIdAuthentication

config.after_initialize do
  OpenID::Util.logger = Rails.logger
  ActionController::Base.send :include, OpenIdAuthentication
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authlogic-connect-0.0.3.4 rails/init.rb