Sha256: 1146a0d24f1ff8002b73bb1157169ab97dd5553ed77f77f51bab4200cbdadf3b
Contents?: true
Size: 848 Bytes
Versions: 5
Compression:
Stored size: 848 Bytes
Contents
require 'gem_config' require 'fridge/version' require 'fridge/access_token' require 'fridge/serialization_error' require 'fridge/invalid_token' require 'fridge/expired_token' require 'fridge/railtie' if defined?(Rails) module Fridge include GemConfig::Base with_configuration do has :private_key, classes: [String] has :public_key, classes: [String] # rubocop:disable Style/PercentLiteralDelimiters has :signing_algorithm, values: %w[RS512 RS256], default: 'RS512' # rubocop:enable Style/PercentLiteralDelimiters # A validator must raise an exception or return a false value for an # invalid token has :validator, classes: [Proc], default: ->(token) { token.valid? } has :cookie_name, classes: [String, Symbol], default: :fridge_session has :cookie_options, classes: [Hash], default: {} end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fridge-1.0.0 | lib/fridge.rb |
fridge-0.4.5 | lib/fridge.rb |
fridge-0.4.4 | lib/fridge.rb |
fridge-0.4.3 | lib/fridge.rb |
fridge-0.4.2 | lib/fridge.rb |