Sha256: 84f517edca988421268b08349958ef6427d97fa3f62bc051308c034522ecf191
Contents?: true
Size: 1.13 KB
Versions: 13
Compression:
Stored size: 1.13 KB
Contents
# Copyright (c) 2021 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
13 entries across 13 versions & 1 rubygems