Sha256: 4ba38a090b0d277464f0dfc1f136bff25e6bb10de1c8c3ea70aac33cb8466fec

Contents?: true

Size: 528 Bytes

Versions: 17

Compression:

Stored size: 528 Bytes

Contents

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

      def self.user_klass
        user_model.to_s.constantize
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gds-sso-9.2.7 lib/gds-sso/config.rb
gds-sso-9.2.6 lib/gds-sso/config.rb
gds-sso-9.2.5 lib/gds-sso/config.rb
gds-sso-9.2.4 lib/gds-sso/config.rb
gds-sso-9.2.3 lib/gds-sso/config.rb
gds-sso-9.2.2 lib/gds-sso/config.rb
gds-sso-9.2.1 lib/gds-sso/config.rb
gds-sso-9.2.0 lib/gds-sso/config.rb
gds-sso-9.1.2 lib/gds-sso/config.rb
gds-sso-9.1.1 lib/gds-sso/config.rb
gds-sso-9.1.0 lib/gds-sso/config.rb
gds-sso-9.0.0 lib/gds-sso/config.rb
gds-sso-8.0.0 lib/gds-sso/config.rb
gds-sso-7.0.0 lib/gds-sso/config.rb
gds-sso-6.0.0 lib/gds-sso/config.rb
gds-sso-5.0.0 lib/gds-sso/config.rb
gds-sso-4.0.0 lib/gds-sso/config.rb