Project

General

Profile

Feature #14060 » enable_authentication_store_configuration.diff

Patch version 1 - Daniel Felix, 2013-05-15 12:50

View differences:

config/environments/development.rb
config.action_mailer.raise_delivery_errors = false
config.active_support.deprecation = :log
# Configure OpenIdAuthentication.store
# allowed values: :memory, :file, :memcache
config.openid_authentication_store = :file
end
config/environments/production.rb
config.action_mailer.logger = nil
config.active_support.deprecation = :log
# Configure OpenIdAuthentication.store
# allowed values: :memory, :file, :memcache
config.openid_authentication_store = :memory
end
config/initializers/40-openid_authentication_store.rb
# Default value
authentication_store = :memory
# Override with enviroment setting if present
authentication_store = RedmineApp::Application.config.openid_authentication_store unless RedmineApp::Application.config.openid_authentication_store.blank?
OpenIdAuthentication.store = authentication_store
(1-1/2)