Sha256: aa85097f4dc647dd00044b476f2038093c7c648cb8905542bf22cf1292414957
Contents?: true
Size: 1.28 KB
Versions: 6
Compression:
Stored size: 1.28 KB
Contents
# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true cs__scoped_require 'contrast/framework/rails/patch/assess_configuration' module Contrast module Framework module Rails module Patch # Our patch into the Rails::Application::Configuration Class, allowing # for the runtime detection of insecure configurations on individual # ActionDispatch::Session::AbstractStore instances within the # application. class RailsApplicationConfiguration def self.instrument @_instrument ||= begin ::Rails::Application::Configuration.class_eval do alias_method :cs__patched_session_store, :session_store def session_store *args ret = cs__patched_session_store(*args) Contrast::Framework::Rails::Patch::AssessConfiguration.analyze_session_store(*args) ret end end true end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems