Flowdock
method

new

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: SignedKeyRotatingCookieJar
new(parent_jar) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 570
      def initialize(parent_jar)
        super

        secret = request.key_generator.generate_key(request.signed_cookie_salt)
        @verifier = ActiveSupport::MessageVerifier.new(secret, digest: signed_cookie_digest, serializer: SERIALIZER)

        request.cookies_rotations.signed.each do |*secrets, **options|
          @verifier.rotate(*secrets, serializer: SERIALIZER, **options)
        end
      end
Register or log in to add new notes.