devise-two-factor 6.3.1 → 6.4.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/.github/ISSUE_TEMPLATE/config.yml +5 -0
- data/.github/workflows/ci.yml +2 -5
- data/.github/workflows/push.yml +3 -1
- data/Appraisals +0 -10
- data/CHANGELOG.md +30 -0
- data/SECURITY.md +1 -1
- data/devise-two-factor.gemspec +4 -3
- data/lib/devise_two_factor/models/two_factor_authenticatable.rb +1 -1
- data/lib/devise_two_factor/version.rb +1 -1
- metadata +11 -11
- data/gemfiles/rails_7.0.gemfile +0 -8
- data/gemfiles/rails_7.1.gemfile +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 117e9dee5b111c62c34a41cb965eb96c9cb7a05fc46adc8da8d6a23f157117a5
|
|
4
|
+
data.tar.gz: bfcecb1015658147320108493635e563e3d001e5a0a56949be00039a7d5b23c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f5564cbc19e08811adc66d2a8c1fadc7a8c0188d4ee4eae116c3c6695248ec3e31be992573e8a6621bdf8ef9605435bf703fcaf8d6fae212a256b2866a2f17e
|
|
7
|
+
data.tar.gz: 601cb2883ee69a0308b89b4ea2b21f30af835c3288b23fa4fe46a5e066bf19e30fcc378fb86fc136a4513f85a65f1495598f15628ed21fd25cb540f7ac7b0926
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -12,11 +12,8 @@ jobs:
|
|
|
12
12
|
fail-fast: false
|
|
13
13
|
matrix:
|
|
14
14
|
# Due to https://github.com/actions/runner/issues/849, we should quote versions
|
|
15
|
-
ruby: ['3.2', '3.3', '3.4', 'truffleruby-head']
|
|
16
|
-
rails: ['7.
|
|
17
|
-
exclude:
|
|
18
|
-
- ruby: '3.4'
|
|
19
|
-
rails: '7.0'
|
|
15
|
+
ruby: ['3.2', '3.3', '3.4', '4.0', 'truffleruby-head']
|
|
16
|
+
rails: ['7.2', '8.0', '8.1']
|
|
20
17
|
|
|
21
18
|
name: Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}
|
|
22
19
|
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
data/.github/workflows/push.yml
CHANGED
data/Appraisals
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
appraise "rails-7.0" do
|
|
2
|
-
gem 'railties', '~> 7.0.0'
|
|
3
|
-
gem 'activesupport', '~> 7.0.0'
|
|
4
|
-
end
|
|
5
|
-
|
|
6
|
-
appraise "rails-7.1" do
|
|
7
|
-
gem 'railties', '~> 7.1.0'
|
|
8
|
-
gem 'activesupport', '~> 7.1.0'
|
|
9
|
-
end
|
|
10
|
-
|
|
11
1
|
appraise "rails-7.2" do
|
|
12
2
|
gem 'railties', '~> 7.2.0'
|
|
13
3
|
gem 'activesupport', '~> 7.2.0'
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
# 6.4.1
|
|
6
|
+
|
|
7
|
+
- Update gem spec metadata sourcecode URI
|
|
8
|
+
|
|
9
|
+
## 6.4.0
|
|
10
|
+
|
|
11
|
+
- Remove upper limit on Devise version (allows v5) from gemspec
|
|
12
|
+
|
|
13
|
+
## 6.3.1
|
|
14
|
+
|
|
15
|
+
- Fix DB-adapter-specific integration issue with backupable shared example
|
|
16
|
+
- Drop support for EOL Rails versions 7.0 and 7.1
|
|
17
|
+
|
|
5
18
|
## 6.3.0
|
|
6
19
|
|
|
7
20
|
- Fixed timing to be consistent when Devise paranoid mode is active.
|
|
@@ -33,20 +46,24 @@
|
|
|
33
46
|
- Rails 7 is now required.
|
|
34
47
|
|
|
35
48
|
## 4.1.0 / 4.1.1
|
|
49
|
+
|
|
36
50
|
- Add support for attr_encrypted v4
|
|
37
51
|
|
|
38
52
|
## 4.0.2
|
|
53
|
+
|
|
39
54
|
- Add Rails 7.0 support
|
|
40
55
|
- Renew signing certificate
|
|
41
56
|
- Use `after` option of TOTP#verify for additional timestamp verification
|
|
42
57
|
|
|
43
58
|
## 4.0.1
|
|
59
|
+
|
|
44
60
|
- Convert CI from Travis CI to Github Actions ([#198](https://github.com/tinfoil/devise-two-factor/pull/198))
|
|
45
61
|
- Fix ActiveSupport::Testing::TimeHelpers require in shared examples ([#191](https://github.com/tinfoil/devise-two-factor/pull/191))
|
|
46
62
|
- Accept whitespace in provided codes ([#195](https://github.com/tinfoil/devise-two-factor/pull/195))
|
|
47
63
|
- Add Truffleruby head to CI ([#200](https://github.com/tinfoil/devise-two-factor/pull/200))
|
|
48
64
|
|
|
49
65
|
## 4.0.0
|
|
66
|
+
|
|
50
67
|
- [breaking] Drop support for Ruby <= 2.2
|
|
51
68
|
- Update ROTP
|
|
52
69
|
- Add Rails 6.1 support
|
|
@@ -55,20 +72,25 @@
|
|
|
55
72
|
- Bugfixes & cleanup
|
|
56
73
|
|
|
57
74
|
## 3.1.0
|
|
75
|
+
|
|
58
76
|
- Add Rails 6.0 support
|
|
59
77
|
- New gem signing certificate
|
|
60
78
|
- Fix paranoid-mode being ignored
|
|
61
79
|
|
|
62
80
|
## 3.0.3
|
|
81
|
+
|
|
63
82
|
- Add Rails 5.2 support
|
|
64
83
|
|
|
65
84
|
## 3.0.2
|
|
85
|
+
|
|
66
86
|
- Add Rails 5.1 support
|
|
67
87
|
|
|
68
88
|
## 3.0.1
|
|
89
|
+
|
|
69
90
|
- Qualify call to rspec shared_examples
|
|
70
91
|
|
|
71
92
|
## 3.0.0
|
|
93
|
+
|
|
72
94
|
See `UPGRADING.md` for specific help with breaking changes from 2.x to 3.0.0.
|
|
73
95
|
|
|
74
96
|
- Adds support for Devise 4.
|
|
@@ -76,33 +98,41 @@ See `UPGRADING.md` for specific help with breaking changes from 2.x to 3.0.0.
|
|
|
76
98
|
- Blocks the use of attr_encrypted 2.x. There was a significant vulnerability in the encryption implementation in attr_encrypted 2.x, and that version of the gem should not be used.
|
|
77
99
|
|
|
78
100
|
## 2.2.0
|
|
101
|
+
|
|
79
102
|
- Use 192 bits, not 1024, as a secret key length. RFC 4226 recommends a minimum length of 128 bits and a recommended length of 160 bits. Google Authenticator doesn't accept 160 bit keys.
|
|
80
103
|
|
|
81
104
|
## 2.1.0
|
|
105
|
+
|
|
82
106
|
- Return false if OTP value is nil, instead of an ROTP exception.
|
|
83
107
|
|
|
84
108
|
## 2.0.1
|
|
109
|
+
|
|
85
110
|
No user-facing changes.
|
|
86
111
|
|
|
87
112
|
## 2.0.0
|
|
113
|
+
|
|
88
114
|
See `UPGRADING.md` for specific help with breaking changes from 1.x to 2.0.0.
|
|
89
115
|
|
|
90
116
|
- Replace `valid_otp?` method with `validate_and_consume_otp!`.
|
|
91
117
|
- Disallow subsequent OTPs once validated via timesteps.
|
|
92
118
|
|
|
93
119
|
## 1.1.0
|
|
120
|
+
|
|
94
121
|
- Removes runtimez activemodel dependency.
|
|
95
122
|
- Uses `Devise::Encryptor` instead of `Devise.bcrypt`, which is deprecated.
|
|
96
123
|
- Bump `rotp` dependency to 2.x.
|
|
97
124
|
|
|
98
125
|
## 1.0.2
|
|
126
|
+
|
|
99
127
|
- Makes Railties the only requirement for Rails generators.
|
|
100
128
|
- Explicitly check that the `otp_attempt` param is not nil in order to avoid 'ROTP only verifies strings' exceptions.
|
|
101
129
|
- Adding warning about recoverable devise strategy and automatic `sign_in` after a password reset.
|
|
102
130
|
- Loosen dependency version requirements for rotp, devise, and attr_encrypted.
|
|
103
131
|
|
|
104
132
|
## 1.0.1
|
|
133
|
+
|
|
105
134
|
- Add version requirements for dependencies.
|
|
106
135
|
|
|
107
136
|
## 1.0.0
|
|
137
|
+
|
|
108
138
|
- Initial release.
|
data/SECURITY.md
CHANGED
data/devise-two-factor.gemspec
CHANGED
|
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
|
|
|
8
8
|
s.license = 'MIT'
|
|
9
9
|
s.summary = 'Barebones two-factor authentication with Devise'
|
|
10
10
|
s.homepage = 'https://github.com/devise-two-factor/devise-two-factor'
|
|
11
|
+
s.metadata['source_code_uri'] = s.homepage
|
|
11
12
|
s.description = 'Devise-Two-Factor is a minimalist extension to Devise which offers support for two-factor authentication through the TOTP scheme.'
|
|
12
13
|
s.authors = ['Quinn Wilton']
|
|
13
14
|
|
|
@@ -15,9 +16,9 @@ Gem::Specification.new do |s|
|
|
|
15
16
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
|
16
17
|
s.require_paths = ['lib']
|
|
17
18
|
|
|
18
|
-
s.add_runtime_dependency 'railties', '>= 7.
|
|
19
|
-
s.add_runtime_dependency 'activesupport', '>= 7.
|
|
20
|
-
s.add_runtime_dependency 'devise', '>= 4.0', '<
|
|
19
|
+
s.add_runtime_dependency 'railties', '>= 7.2', '< 8.2'
|
|
20
|
+
s.add_runtime_dependency 'activesupport', '>= 7.2', '< 8.2'
|
|
21
|
+
s.add_runtime_dependency 'devise', '>= 4.0', '< 6.0'
|
|
21
22
|
s.add_runtime_dependency 'rotp', '~> 6.0'
|
|
22
23
|
|
|
23
24
|
s.add_development_dependency 'activemodel'
|
|
@@ -91,7 +91,7 @@ module Devise
|
|
|
91
91
|
:otp_encrypted_attribute_options,
|
|
92
92
|
:otp_secret_encryption_key)
|
|
93
93
|
|
|
94
|
-
#
|
|
94
|
+
# Generates an OTP secret of the specified length, returning it after Base32 encoding.
|
|
95
95
|
def generate_otp_secret(otp_secret_length = self.otp_secret_length)
|
|
96
96
|
ROTP::Base32.random(otp_secret_length)
|
|
97
97
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devise-two-factor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.
|
|
4
|
+
version: 6.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Quinn Wilton
|
|
@@ -15,7 +15,7 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - ">="
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '7.
|
|
18
|
+
version: '7.2'
|
|
19
19
|
- - "<"
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
21
|
version: '8.2'
|
|
@@ -25,7 +25,7 @@ dependencies:
|
|
|
25
25
|
requirements:
|
|
26
26
|
- - ">="
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: '7.
|
|
28
|
+
version: '7.2'
|
|
29
29
|
- - "<"
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
31
|
version: '8.2'
|
|
@@ -35,7 +35,7 @@ dependencies:
|
|
|
35
35
|
requirements:
|
|
36
36
|
- - ">="
|
|
37
37
|
- !ruby/object:Gem::Version
|
|
38
|
-
version: '7.
|
|
38
|
+
version: '7.2'
|
|
39
39
|
- - "<"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
41
|
version: '8.2'
|
|
@@ -45,7 +45,7 @@ dependencies:
|
|
|
45
45
|
requirements:
|
|
46
46
|
- - ">="
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: '7.
|
|
48
|
+
version: '7.2'
|
|
49
49
|
- - "<"
|
|
50
50
|
- !ruby/object:Gem::Version
|
|
51
51
|
version: '8.2'
|
|
@@ -58,7 +58,7 @@ dependencies:
|
|
|
58
58
|
version: '4.0'
|
|
59
59
|
- - "<"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
61
|
+
version: '6.0'
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -68,7 +68,7 @@ dependencies:
|
|
|
68
68
|
version: '4.0'
|
|
69
69
|
- - "<"
|
|
70
70
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: '
|
|
71
|
+
version: '6.0'
|
|
72
72
|
- !ruby/object:Gem::Dependency
|
|
73
73
|
name: rotp
|
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -173,6 +173,7 @@ executables: []
|
|
|
173
173
|
extensions: []
|
|
174
174
|
extra_rdoc_files: []
|
|
175
175
|
files:
|
|
176
|
+
- ".github/ISSUE_TEMPLATE/config.yml"
|
|
176
177
|
- ".github/dependabot.yml"
|
|
177
178
|
- ".github/workflows/ci.yml"
|
|
178
179
|
- ".github/workflows/push.yml"
|
|
@@ -189,8 +190,6 @@ files:
|
|
|
189
190
|
- SECURITY.md
|
|
190
191
|
- UPGRADING.md
|
|
191
192
|
- devise-two-factor.gemspec
|
|
192
|
-
- gemfiles/rails_7.0.gemfile
|
|
193
|
-
- gemfiles/rails_7.1.gemfile
|
|
194
193
|
- gemfiles/rails_7.2.gemfile
|
|
195
194
|
- gemfiles/rails_8.0.gemfile
|
|
196
195
|
- gemfiles/rails_8.1.gemfile
|
|
@@ -212,7 +211,8 @@ files:
|
|
|
212
211
|
homepage: https://github.com/devise-two-factor/devise-two-factor
|
|
213
212
|
licenses:
|
|
214
213
|
- MIT
|
|
215
|
-
metadata:
|
|
214
|
+
metadata:
|
|
215
|
+
source_code_uri: https://github.com/devise-two-factor/devise-two-factor
|
|
216
216
|
rdoc_options: []
|
|
217
217
|
require_paths:
|
|
218
218
|
- lib
|
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
227
227
|
- !ruby/object:Gem::Version
|
|
228
228
|
version: '0'
|
|
229
229
|
requirements: []
|
|
230
|
-
rubygems_version: 4.0.
|
|
230
|
+
rubygems_version: 4.0.16
|
|
231
231
|
specification_version: 4
|
|
232
232
|
summary: Barebones two-factor authentication with Devise
|
|
233
233
|
test_files:
|
data/gemfiles/rails_7.0.gemfile
DELETED