arkaan 3.2.2 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arkaan/authentication/device.rb +6 -0
- 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: 65f8289754a8004de723395b4b56b51c3a03298e12e2862bb93229a0b5a2628c
|
4
|
+
data.tar.gz: 784a148f4f3ceb643e5b2e644e0c79afd5207aaa8ed5c82c9dadd6b264a0ee6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4553b140636382535cfaa9157d711c4e96d42e79c6f52dc4665eead60c9d73f9b9eaea1ab6c1f8f9849d8ae1f57d7ec880baacd67e42981ed663dca68c7a91bf
|
7
|
+
data.tar.gz: af868a3f99aea837395fb859bb0c5fe056d5b4f2c109c524a5eca7f077f0c03965d22d006f99e5121ec0bb40a1f09c30ffd6a9d5c63ef7c6ecf81acae0967801
|
@@ -8,12 +8,18 @@ module Arkaan
|
|
8
8
|
include Mongoid::Document
|
9
9
|
include Mongoid::Timestamps
|
10
10
|
|
11
|
+
# @!attribute [rw] label
|
12
|
+
# @return [String] the label attached to the device, describing it in details.
|
13
|
+
field :label, type: String
|
11
14
|
# @!attribute [rw] user_agent
|
12
15
|
# @return [String] the string representation of the browser and OS of the user
|
13
16
|
field :user_agent, type: String
|
14
17
|
# @!attribute [rw] ip
|
15
18
|
# @return [String] the IP address of the user
|
16
19
|
field :ip, type: String
|
20
|
+
# @!attribute [rw] safe
|
21
|
+
# @return [Boolean] TRUE if the device is considered safe, FALSE otherwise
|
22
|
+
field :safe, type: Boolean, default: false
|
17
23
|
|
18
24
|
# @!attribute [rw] sessions
|
19
25
|
# @return [Array<Arkaan::Authentication::Session] the sessions this browser is linked to.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arkaan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Courtois
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: database_cleaner
|