Class: ActionDispatch::Cookies::UpgradeLegacyEncryptedCookieJar
- Inherits:
-
EncryptedCookieJar
- Object
- EncryptedCookieJar
- ActionDispatch::Cookies::UpgradeLegacyEncryptedCookieJar
- Includes:
- VerifyAndUpgradeLegacySignedMessage
- Defined in:
- lib/action_dispatch/middleware/cookies.rb
Overview
UpgradeLegacyEncryptedCookieJar is used by ActionDispatch::Session::CookieStore instead of EncryptedCookieJar if config.secret_token and config.secret_key_base are both set. It reads legacy cookies signed with the old dummy key generator and encrypts and re-saves them using the new key generator to provide a smooth upgrade path.
Instance Method Summary collapse
Methods included from VerifyAndUpgradeLegacySignedMessage
#initialize, #verify_and_upgrade_legacy_signed_message
Methods inherited from EncryptedCookieJar
Methods included from ChainedCookieJars
#encrypted, #permanent, #signed, #signed_or_encrypted
Instance Method Details
#[](name) ⇒ Object
474 475 476 477 478 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 474 def [](name) if = @parent_jar[name] decrypt_and_verify() || (name, ) end end |