Sha256: f5045d14aedf9c9fb3f32d0d29b32669c8af82ca946b425f60458401dd32cb12
Contents?: true
Size: 788 Bytes
Versions: 6
Compression:
Stored size: 788 Bytes
Contents
require 'active_support/cache/null_store' module GDS module SSO module Config # Name of the User class mattr_accessor :user_model @@user_model = "User" # OAuth ID mattr_accessor :oauth_id # OAuth Secret mattr_accessor :oauth_secret # Location of the OAuth server mattr_accessor :oauth_root_url @@oauth_root_url = "http://localhost:3001" mattr_accessor :auth_valid_for @@auth_valid_for = 20 * 3600 mattr_accessor :cache @@cache = ActiveSupport::Cache::NullStore.new def self.user_klass user_model.to_s.constantize end def self.use_mock_strategies? ['development', 'test'].include?(Rails.env) && ENV['GDS_SSO_STRATEGY'] != 'real' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems