auth-armor 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/lib/auth/armor/version.rb +1 -1
- data/lib/auth_armor.rb +8 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 111ffe92f847be4d5810e4fdee416d22ce92a94cbf2e131255ccb54f56d283a4
|
4
|
+
data.tar.gz: fe8c9cd12af03c6baf5e79779ada52b852bd93f3b4ee8fdd35631530f8c8345e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce9eebe9defb4f8ca5011f900758167ff7f96dad4ba5ea4d133d97336d15da2160c3c8d481d807c4827d8d5f6541cb7c433342a762eb5981ffc87339db101702
|
7
|
+
data.tar.gz: eb2783a4ed1ebf273362bd24cb22178b0c34050bfc066b1563aedd218156b3756c5e0ada10d9c9bfe9868fc5a3c89e7bf2b2afb2f090f7cd90be1b8849e2eba2
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ To send an Auth request to the a mobile device or security key, call the `auth_r
|
|
37
37
|
|
38
38
|
```ruby
|
39
39
|
AuthArmor::Client.auth_request(
|
40
|
-
|
40
|
+
nickname: "NICKNAME",
|
41
41
|
action_name: "Login",
|
42
42
|
short_msg: "This is a test message",
|
43
43
|
)
|
@@ -47,7 +47,7 @@ AuthArmor::Client.auth_request(
|
|
47
47
|
|
48
48
|
```ruby
|
49
49
|
AuthArmor::Client.auth_request(
|
50
|
-
|
50
|
+
nickname: "NICKNAME",
|
51
51
|
action_name: "Login",
|
52
52
|
short_msg: "This is a test message",
|
53
53
|
accepted_auth_methods: "mobiledevice"
|
@@ -58,7 +58,7 @@ AuthArmor::Client.auth_request(
|
|
58
58
|
|
59
59
|
```ruby
|
60
60
|
AuthArmor::Client.auth_request(
|
61
|
-
|
61
|
+
nickname: "NICKNAME",
|
62
62
|
action_name: "Login",
|
63
63
|
short_msg: "This is a test message",
|
64
64
|
accepted_auth_methods: "mobiledevice",
|
@@ -70,7 +70,7 @@ AuthArmor::Client.auth_request(
|
|
70
70
|
|
71
71
|
```ruby
|
72
72
|
AuthArmor::Client.auth_request(
|
73
|
-
|
73
|
+
nickname: "NICKNAME",
|
74
74
|
action_name: "Login",
|
75
75
|
short_msg: "This is a test message",
|
76
76
|
accepted_auth_methods: "securitykey"
|
@@ -84,8 +84,14 @@ AuthArmor::Client.auth_request(
|
|
84
84
|
|
85
85
|
- `accepted_auth_methods` - this can either be `mobiledevice` or `securitykey`. If neither is provided, both auth methods are acceptable.
|
86
86
|
|
87
|
+
- `nonce` - An optional value that is signed and returned in the request. This helps validate the response was from your request and no one has done a man-in-the-middle attack.
|
88
|
+
|
87
89
|
- `timeout_in_seconds` - this is the amount of time you want to allow the auth to be valid before it expires. The min is 15, and max is 300. If not provided, the default time for the project is used.
|
88
90
|
|
91
|
+
- `latitude` - this is the latitude where the request originated from.
|
92
|
+
|
93
|
+
- `langitude` - this is the longitude where the request originated from. If provided, location details will show in the push message about the origin of the request.
|
94
|
+
|
89
95
|
|
90
96
|
## Invite Request
|
91
97
|
|
data/lib/auth/armor/version.rb
CHANGED
data/lib/auth_armor.rb
CHANGED
@@ -57,13 +57,18 @@ module AuthArmor
|
|
57
57
|
JSON.parse(err.response.to_str)
|
58
58
|
end
|
59
59
|
|
60
|
-
def auth_request(timeout_in_seconds: nil, forcebiometric: false, accepted_auth_methods: nil,
|
60
|
+
def auth_request(longitude: nil, latitude: nil, nonce: nil, timeout_in_seconds: nil, forcebiometric: false, accepted_auth_methods: nil, nickname:, action_name:, short_msg:)
|
61
61
|
payload = {
|
62
|
-
|
62
|
+
nickname: nickname,
|
63
63
|
action_name: action_name,
|
64
64
|
short_msg: short_msg,
|
65
65
|
timeout_in_seconds: timeout_in_seconds,
|
66
|
-
|
66
|
+
nonce: nonce,
|
67
|
+
accepted_auth_methods: auth_methods(accepted_auth_methods, forcebiometric),
|
68
|
+
origin_location_data: {
|
69
|
+
longitude: longitude,
|
70
|
+
latitude: latitude
|
71
|
+
}
|
67
72
|
}
|
68
73
|
|
69
74
|
connect(payload: payload, method: :post, endpoint: "auth/request")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auth-armor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hannah Masila
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -81,7 +81,7 @@ licenses:
|
|
81
81
|
metadata:
|
82
82
|
homepage_uri: https://rubygems.org/gems/auth-armor
|
83
83
|
source_code_uri: https://github.com/hmasila/auth-armor
|
84
|
-
post_install_message:
|
84
|
+
post_install_message:
|
85
85
|
rdoc_options: []
|
86
86
|
require_paths:
|
87
87
|
- lib
|
@@ -96,8 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
100
|
-
signing_key:
|
99
|
+
rubygems_version: 3.0.3
|
100
|
+
signing_key:
|
101
101
|
specification_version: 4
|
102
102
|
summary: AuthArmor is Password-less login and 2FA using biometrics secured by hardware
|
103
103
|
and PKI.
|