Sha256: 333bfde05da228bb7db2d3bf1188af59ac1e75e254ab9330f36f9948fdfd3525
Contents?: true
Size: 1.13 KB
Versions: 18
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
18 entries across 18 versions & 1 rubygems