warden_cookie_session 0.1.2.19269 → 0.1.2.19275
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/warden/cookie_session/encrypted_cookie.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97254bb7c99d0a45d8df5a8247b8c7aa87417f71921fb83f3fbb7fd9cbd3e685
|
4
|
+
data.tar.gz: aed7416e037082c4c2b1fce4a312227a69cb1c518d17326cf907eb4d1a50de51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a0530b767ef6e3713e4b5686a88546188aff5002ae4a312a7736ba9d983f1869ae1b7710856db678e1df41abe8a7446e72c7d08472ff57b3b0eb63cc3cf9ea8
|
7
|
+
data.tar.gz: ead570ef8dd06155e7d6641d2d0e0ad6e762ac15a66e14fe617092068b78e66af44a4c94016a0f0ee9f025ac3f3af63f080ed12dedcf534a86931b288c25d6ae
|
@@ -20,9 +20,11 @@ class Warden::CookieSession::EncryptedCookie
|
|
20
20
|
|
21
21
|
def put(data, domain)
|
22
22
|
store[cookie] = {
|
23
|
-
value:
|
24
|
-
domain:
|
25
|
-
secure:
|
23
|
+
value: encryptor.encrypt_and_sign(data.to_json),
|
24
|
+
domain: domain,
|
25
|
+
secure: true,
|
26
|
+
http_only: true,
|
27
|
+
httponly: true
|
26
28
|
}
|
27
29
|
end
|
28
30
|
|