Module: ActionDispatch::RequestCookieMethods
- Defined in:
- lib/action_dispatch/middleware/cookies.rb
Instance Method Summary collapse
- #authenticated_encrypted_cookie_salt ⇒ Object
- #cookie_jar ⇒ Object
- #cookie_jar=(jar) ⇒ Object
- #cookies_digest ⇒ Object
- #cookies_rotations ⇒ Object
- #cookies_same_site_protection ⇒ Object
- #cookies_serializer ⇒ Object
- #encrypted_cookie_cipher ⇒ Object
- #encrypted_cookie_salt ⇒ Object
- #encrypted_signed_cookie_salt ⇒ Object
- #have_cookie_jar? ⇒ Boolean
- #key_generator ⇒ Object
- #secret_key_base ⇒ Object
- #signed_cookie_digest ⇒ Object
- #signed_cookie_salt ⇒ Object
- #use_authenticated_cookie_encryption ⇒ Object
- #use_cookies_with_metadata ⇒ Object
Instance Method Details
#authenticated_encrypted_cookie_salt ⇒ Object
48 49 50 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 48 def get_header Cookies::AUTHENTICATED_ENCRYPTED_COOKIE_SALT end |
#cookie_jar ⇒ Object
11 12 13 14 15 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 11 def fetch_header("action_dispatch.cookies") do self. = Cookies::CookieJar.build(self, ) end end |
#cookie_jar=(jar) ⇒ Object
28 29 30 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 28 def (jar) set_header "action_dispatch.cookies", jar end |
#cookies_digest ⇒ Object
76 77 78 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 76 def get_header Cookies::COOKIES_DIGEST end |
#cookies_rotations ⇒ Object
80 81 82 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 80 def get_header Cookies::COOKIES_ROTATIONS end |
#cookies_same_site_protection ⇒ Object
72 73 74 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 72 def get_header(Cookies::COOKIES_SAME_SITE_PROTECTION) || Proc.new { } end |
#cookies_serializer ⇒ Object
68 69 70 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 68 def get_header Cookies::COOKIES_SERIALIZER end |
#encrypted_cookie_cipher ⇒ Object
56 57 58 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 56 def get_header Cookies::ENCRYPTED_COOKIE_CIPHER end |
#encrypted_cookie_salt ⇒ Object
40 41 42 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 40 def get_header Cookies::ENCRYPTED_COOKIE_SALT end |
#encrypted_signed_cookie_salt ⇒ Object
44 45 46 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 44 def get_header Cookies::ENCRYPTED_SIGNED_COOKIE_SALT end |
#have_cookie_jar? ⇒ Boolean
24 25 26 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 24 def has_header? "action_dispatch.cookies" end |
#key_generator ⇒ Object
32 33 34 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 32 def key_generator get_header Cookies::GENERATOR_KEY end |
#secret_key_base ⇒ Object
64 65 66 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 64 def secret_key_base get_header Cookies::SECRET_KEY_BASE end |
#signed_cookie_digest ⇒ Object
60 61 62 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 60 def get_header Cookies::SIGNED_COOKIE_DIGEST end |
#signed_cookie_salt ⇒ Object
36 37 38 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 36 def get_header Cookies::SIGNED_COOKIE_SALT end |
#use_authenticated_cookie_encryption ⇒ Object
52 53 54 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 52 def get_header Cookies::USE_AUTHENTICATED_COOKIE_ENCRYPTION end |
#use_cookies_with_metadata ⇒ Object
84 85 86 |
# File 'lib/action_dispatch/middleware/cookies.rb', line 84 def get_header Cookies::USE_COOKIES_WITH_METADATA end |