Feature #14060 » enable_authentication_store_configuration.diff
config/environments/development.rb | ||
---|---|---|
16 | 16 |
config.action_mailer.raise_delivery_errors = false |
17 | 17 | |
18 | 18 |
config.active_support.deprecation = :log |
19 |
|
|
20 |
# Configure OpenIdAuthentication.store |
|
21 |
# allowed values: :memory, :file, :memcache |
|
22 |
config.openid_authentication_store = :file |
|
19 | 23 |
end |
config/environments/production.rb | ||
---|---|---|
29 | 29 |
config.action_mailer.logger = nil |
30 | 30 | |
31 | 31 |
config.active_support.deprecation = :log |
32 |
|
|
33 |
# Configure OpenIdAuthentication.store |
|
34 |
# allowed values: :memory, :file, :memcache |
|
35 |
config.openid_authentication_store = :memory |
|
32 | 36 |
end |
config/initializers/40-openid_authentication_store.rb | ||
---|---|---|
1 |
# Default value |
|
2 |
authentication_store = :memory |
|
3 | ||
4 |
# Override with enviroment setting if present |
|
5 |
authentication_store = RedmineApp::Application.config.openid_authentication_store unless RedmineApp::Application.config.openid_authentication_store.blank? |
|
6 | ||
7 |
OpenIdAuthentication.store = authentication_store |