Sha256: 984ac8346d9c0dc8d96b60a206f3085b77ed0a62f5af9e04503377406f844a14

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

require "passport"

# 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 OpenIdAuthentication
config.middleware.use Passport::CallbackFilter

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
passport-0.0.1 rails/init.rb