authie 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authie/config.rb +5 -0
- data/lib/authie/controller_delegate.rb +7 -2
- data/lib/authie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5218eaaf13f33cbb5549d8a960346afce6fee2c7a1f6d012a700b194a767fe01
|
4
|
+
data.tar.gz: af46e46d5705509861615f5c24d944db378735583392668d718ebd94266817aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4192a20e425bcbf33ec6225cd5b5b4e3579a2afc5a636b33e59b9d833c588012882d596530b02980a69d1aa34de0a56c81bae42d369566fa14e43f95d62666
|
7
|
+
data.tar.gz: 25d48500830186409ae772707ac22669a559bc9a578c5b590c67dcdf83b6fefd428b2c8ad5d8872e8900f3d873395a60519fe1c091dd08e506be04e0d8eb56f2
|
data/lib/authie/config.rb
CHANGED
@@ -7,10 +7,15 @@ module Authie
|
|
7
7
|
|
8
8
|
# Set a random browser ID for this browser.
|
9
9
|
def set_browser_id
|
10
|
-
until cookies[
|
10
|
+
until cookies[Authie.config.browser_id_cookie_name]
|
11
11
|
proposed_browser_id = SecureRandom.uuid
|
12
12
|
unless Session.where(:browser_id => proposed_browser_id).exists?
|
13
|
-
cookies[
|
13
|
+
cookies[Authie.config.browser_id_cookie_name] = {
|
14
|
+
:value => proposed_browser_id,
|
15
|
+
:expires => 5.years.from_now,
|
16
|
+
:httponly => true,
|
17
|
+
:secure => @controller.request.ssl?
|
18
|
+
}
|
14
19
|
end
|
15
20
|
end
|
16
21
|
end
|
data/lib/authie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A Rails library for storing user sessions in a backend database
|
14
14
|
email:
|