Sha256: 1bd1f611f6c55a2548c8d9e61d7b5cf542cf4b61708fddb58bddf95d1aa12b77
Contents?: true
Size: 880 Bytes
Versions: 7
Compression:
Stored size: 880 Bytes
Contents
# frozen_string_literal: true require_relative 'decode_configuration' require_relative 'jwk_configuration' module JWT module Configuration class Container attr_accessor :decode, :jwk, :strict_base64_decoding attr_reader :deprecation_warnings def initialize reset! end def reset! @decode = DecodeConfiguration.new @jwk = JwkConfiguration.new @strict_base64_decoding = false self.deprecation_warnings = :once end DEPRECATION_WARNINGS_VALUES = %i[once warn silent].freeze def deprecation_warnings=(value) raise ArgumentError, "Invalid deprecation_warnings value #{value}. Supported values: #{DEPRECATION_WARNINGS_VALUES}" unless DEPRECATION_WARNINGS_VALUES.include?(value) @deprecation_warnings = value end end end end
Version data entries
7 entries across 7 versions & 2 rubygems