Sha256: ba4eda1ae641df91e2f15a4758b53035a3b8ccd51518c733df8c4a3d2890cfe1
Contents?: true
Size: 1.13 KB
Versions: 6
Compression:
Stored size: 1.13 KB
Contents
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true 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. module RailsApplicationConfiguration def self.instrument @_instrument ||= begin ::Rails::Application::Configuration.class_eval do alias_method :cs__patched_session_store, :session_store def session_store *args, **kwargs ret = cs__patched_session_store(*args, **kwargs) Contrast::Framework::Rails::Patch::AssessConfiguration.analyze_session_store(*args, **kwargs) ret end end true end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems