mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
15 lines
340 B
Ruby
15 lines
340 B
Ruby
# frozen_string_literal: false
|
|
|
|
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.after_initialize do
|
|
OpenID::Util.logger = Rails.logger
|
|
ActionController::Base.send :include, OpenIdAuthentication
|
|
end
|