Class: ActionDispatch::Cookies::UpgradeLegacySignedCookieJar
- Inherits:
-
SignedCookieJar
- Object
- AbstractCookieJar
- SignedCookieJar
- ActionDispatch::Cookies::UpgradeLegacySignedCookieJar
- Includes:
- VerifyAndUpgradeLegacySignedMessage
- Defined in:
- lib/action_dispatch/middleware/cookies.rb
Overview
UpgradeLegacySignedCookieJar is used instead of SignedCookieJar if secrets.secret_token and secrets.secret_key_base are both set. It reads legacy cookies signed with the old dummy key generator and signs and re-saves them using the new key generator to provide a smooth upgrade path.
Constant Summary
Constants included from SerializedCookieJars
SerializedCookieJars::MARSHAL_SIGNATURE
Method Summary
Methods included from VerifyAndUpgradeLegacySignedMessage
#initialize, #verify_and_upgrade_legacy_signed_message