devise-authy 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +7 -3
- data/app/controllers/devise/devise_authy_controller.rb +4 -0
- data/lib/devise-authy/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9157eb5b102b0297c975ea71d190f500e0bf6dc5831717df0ca5695b9f0af13e
|
4
|
+
data.tar.gz: 7582bfb6b18310dd7697a808460ac87282d1c2e3fc9fd09838c431d69315d655
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36cc430cf270f535c3068c15668a398bbc9a297d345bb0c659db49ef5fb9febb43761abcf118c340476797a8c7150de37cb6ddcd0caf14b408cdecb94ab856f6
|
7
|
+
data.tar.gz: 856434e4038f931c25f84ddac5281f0b5f762e4a6d9d27a355362822342c255bea58ee6b087a52d912802b654436ef7505efc6a310375cafb67bdfafa5d800e1
|
data/CHANGELOG.md
CHANGED
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
9
9
|
|
10
10
|
...
|
11
11
|
|
12
|
+
## [2.2.1] - 2020-10-13
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
|
16
|
+
- If the app offers a QR code scan and user fails to verify authy installation, the QR code wasn't shown again. Fixed in (#149)
|
17
|
+
|
12
18
|
## [2.2.0] - 2020-06-04
|
13
19
|
|
14
20
|
### Fixed
|
data/README.md
CHANGED
@@ -60,20 +60,24 @@ You can add devise_authy to your user model in two ways.
|
|
60
60
|
|
61
61
|
#### With the generator
|
62
62
|
|
63
|
-
|
63
|
+
Run the following command:
|
64
64
|
|
65
65
|
```bash
|
66
66
|
rails g devise_authy [MODEL_NAME]
|
67
67
|
```
|
68
68
|
|
69
|
+
To support account locking (recommended), you must add `:authy_lockable` to the `devise :authy_authenticatable, ...` configuration in your model as this is not yet supported by the generator.
|
70
|
+
|
69
71
|
#### Manually
|
70
72
|
|
71
|
-
Add `:authy_authenticatable` to the `devise` options in your Devise user model:
|
73
|
+
Add `:authy_authenticatable` and `:authy_lockable` to the `devise` options in your Devise user model:
|
72
74
|
|
73
75
|
```ruby
|
74
|
-
devise :authy_authenticatable, :database_authenticatable
|
76
|
+
devise :authy_authenticatable, :authy_lockable, :database_authenticatable, :lockable
|
75
77
|
```
|
76
78
|
|
79
|
+
(Note, `:authy_lockable` is optional but recommended. It should be used with Devise's own `:lockable` module).
|
80
|
+
|
77
81
|
Also add a new migration. For example, if you are adding to the `User` model, use this migration:
|
78
82
|
|
79
83
|
```ruby
|
@@ -131,6 +131,10 @@ class Devise::DeviseAuthyController < DeviseController
|
|
131
131
|
set_flash_message(:notice, :enabled)
|
132
132
|
redirect_to after_authy_verified_path_for(resource)
|
133
133
|
else
|
134
|
+
if resource_class.authy_enable_qr_code
|
135
|
+
response = Authy::API.request_qr_code(id: resource.authy_id)
|
136
|
+
@authy_qr_code = response.qr_code
|
137
|
+
end
|
134
138
|
handle_invalid_token :verify_authy_installation, :not_enabled
|
135
139
|
end
|
136
140
|
end
|
data/lib/devise-authy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-authy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Authy Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -334,7 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
334
334
|
- !ruby/object:Gem::Version
|
335
335
|
version: '0'
|
336
336
|
requirements: []
|
337
|
-
rubygems_version: 3.0.
|
337
|
+
rubygems_version: 3.0.3
|
338
338
|
signing_key:
|
339
339
|
specification_version: 4
|
340
340
|
summary: Authy plugin for Devise.
|