21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/mauth/config_env.rb', line 21
def load
validate! if production?
{
'mauth_baseurl' => env[:mauth_url] || 'http://localhost:7000',
'mauth_api_version' => env[:mauth_api_version],
'app_uuid' => env[:mauth_app_uuid] || 'fb17460e-9868-11e1-8399-0090f5ccb4d3',
'private_key' => private_key || PrivateKeyHelper.generate.to_s,
'v2_only_authenticate' => env[:mauth_v2_only_authenticate],
'v2_only_sign_requests' => env[:mauth_v2_only_sign_requests],
'disable_fallback_to_v1_on_v2_failure' => env[:mauth_disable_fallback_to_v1_on_v2_failure],
'v1_only_sign_requests' => env[:mauth_v1_only_sign_requests],
'use_rails_cache' => env[:mauth_use_rails_cache]
}
end
|