devise-authy 1.9.0 → 1.10.0
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 +8 -0
- data/README.md +6 -8
- data/config/locales/en.yml +1 -0
- data/lib/devise-authy/controllers/helpers.rb +1 -1
- data/lib/devise-authy/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: c2944ca880949d1d99ba1116f87399c9be0043cc210d29c4d5c500b08b74a3ba
|
|
4
|
+
data.tar.gz: 400fe93a97c18c62904d7f3b2795193bdfe724b4022c677bf20a507f12881cab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 394a6c85daf4d32bd9a7f8be985cdb81dbc6aad4578b317bfbf2cd0514226bbef466fe0f3831b85034d7de6d99d7be2f4c461243705bb1936491e9454d595360
|
|
7
|
+
data.tar.gz: a5defe4716260f048cf8080bd40fa47d4fb13da62ed42a75461b62c46c0b4b7eba25d6d8896064666e8252364d6da159b4375111019174591dc1f2b046f370ed
|
data/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
9
9
|
|
|
10
10
|
...
|
|
11
11
|
|
|
12
|
+
## [1.10.0] - 2018-09-26
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Moves OneTouch approval request copy to locale file.
|
|
16
|
+
|
|
17
|
+
### Removed
|
|
18
|
+
- Demo app now lives in its own repo
|
|
19
|
+
|
|
12
20
|
## [1.9.0] - 2018-09-04
|
|
13
21
|
|
|
14
22
|
### Fixed
|
data/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
# Authy Devise [](https://travis-ci.org/twilio/authy-devise)
|
|
2
2
|
|
|
3
3
|
This is a [Devise](https://github.com/plataformatec/devise) extension to add Two-Factor Authentication with Authy to your rails application.
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
## Pre-requisites
|
|
7
6
|
|
|
8
7
|
To use the Authy API you will need a Twilio Account, [sign up for a free account here](https://www.twilio.com/try-twilio).
|
|
@@ -11,7 +10,7 @@ Create an [Authy Application in the Twilio console](https://www.twilio.com/conso
|
|
|
11
10
|
|
|
12
11
|
## Demo
|
|
13
12
|
|
|
14
|
-
See [
|
|
13
|
+
See [this repo for a full demo of using `authy-devise`](https://github.com/twilio/authy-devise-demo).
|
|
15
14
|
|
|
16
15
|
## Getting started
|
|
17
16
|
|
|
@@ -49,7 +48,7 @@ or add the following line to your `User` model
|
|
|
49
48
|
devise :authy_authenticatable, :database_authenticatable
|
|
50
49
|
```
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
Update the default routes to point to something like:
|
|
53
52
|
|
|
54
53
|
```ruby
|
|
55
54
|
devise_for :users, :path_names => {
|
|
@@ -64,12 +63,11 @@ Then run the migrations:
|
|
|
64
63
|
|
|
65
64
|
rake db:migrate
|
|
66
65
|
|
|
67
|
-
Now whenever a user wants to enable two-factor authentication they can go
|
|
68
|
-
to:
|
|
66
|
+
Now whenever a user wants to enable two-factor authentication they can go to:
|
|
69
67
|
|
|
70
68
|
http://your-app/users/enable-two-factor
|
|
71
69
|
|
|
72
|
-
And when the user
|
|
70
|
+
And when the user logs in they will be redirected to:
|
|
73
71
|
|
|
74
72
|
http://your-app/users/verify-token
|
|
75
73
|
|
|
@@ -123,7 +121,7 @@ devise_for :users, controllers: {devise_authy: 'my_custom_module/devise_authy'}
|
|
|
123
121
|
|
|
124
122
|
## I18n
|
|
125
123
|
|
|
126
|
-
The install generator also
|
|
124
|
+
The install generator also copies a `Devise Authy` i18n file which you can find at:
|
|
127
125
|
|
|
128
126
|
config/locales/devise.authy.en.yml
|
|
129
127
|
|
data/config/locales/en.yml
CHANGED
|
@@ -77,7 +77,7 @@ module DeviseAuthy
|
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
def send_one_touch_request
|
|
80
|
-
Authy::OneTouch.send_approval_request(id: @authy_id, message: '
|
|
80
|
+
Authy::OneTouch.send_approval_request(id: @authy_id, message: I18n.t('request_to_login', { :scope => 'devise' }))
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
def record_authy_authentication
|
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: 1.
|
|
4
|
+
version: 1.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Authy Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-09-
|
|
11
|
+
date: 2018-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: devise
|