devise_token_auth 1.1.0 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/controllers/devise_token_auth/application_controller.rb +2 -2
- data/app/controllers/devise_token_auth/concerns/set_user_by_token.rb +28 -31
- data/app/controllers/devise_token_auth/confirmations_controller.rb +55 -7
- data/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb +34 -11
- data/app/controllers/devise_token_auth/passwords_controller.rb +32 -14
- data/app/controllers/devise_token_auth/registrations_controller.rb +6 -5
- data/app/controllers/devise_token_auth/sessions_controller.rb +5 -5
- data/app/controllers/devise_token_auth/unlocks_controller.rb +3 -3
- data/app/models/devise_token_auth/concerns/active_record_support.rb +1 -21
- data/app/models/devise_token_auth/concerns/confirmable_support.rb +28 -0
- data/app/models/devise_token_auth/concerns/tokens_serialization.rb +31 -0
- data/app/models/devise_token_auth/concerns/user.rb +43 -48
- data/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb +5 -2
- data/app/validators/{devise_token_auth/email_validator.rb → devise_token_auth_email_validator.rb} +2 -2
- data/config/locales/da-DK.yml +2 -0
- data/config/locales/de.yml +2 -0
- data/config/locales/en.yml +7 -0
- data/config/locales/es.yml +2 -0
- data/config/locales/fr.yml +2 -0
- data/config/locales/he.yml +2 -0
- data/config/locales/it.yml +2 -0
- data/config/locales/ja.yml +3 -1
- data/config/locales/ko.yml +51 -0
- data/config/locales/nl.yml +2 -0
- data/config/locales/pl.yml +6 -3
- data/config/locales/pt-BR.yml +2 -0
- data/config/locales/pt.yml +6 -3
- data/config/locales/ro.yml +2 -0
- data/config/locales/ru.yml +2 -0
- data/config/locales/sq.yml +2 -0
- data/config/locales/sv.yml +2 -0
- data/config/locales/uk.yml +2 -0
- data/config/locales/vi.yml +2 -0
- data/config/locales/zh-CN.yml +2 -0
- data/config/locales/zh-HK.yml +2 -0
- data/config/locales/zh-TW.yml +2 -0
- data/lib/devise_token_auth.rb +1 -0
- data/lib/devise_token_auth/controllers/helpers.rb +5 -9
- data/lib/devise_token_auth/engine.rb +7 -1
- data/lib/devise_token_auth/rails/routes.rb +16 -11
- data/lib/devise_token_auth/token_factory.rb +126 -0
- data/lib/devise_token_auth/url.rb +3 -0
- data/lib/devise_token_auth/version.rb +1 -1
- data/lib/generators/devise_token_auth/USAGE +1 -1
- data/lib/generators/devise_token_auth/install_generator.rb +4 -4
- data/lib/generators/devise_token_auth/install_mongoid_generator.rb +2 -2
- data/lib/generators/devise_token_auth/templates/devise_token_auth.rb +10 -0
- data/lib/generators/devise_token_auth/templates/devise_token_auth_create_users.rb.erb +1 -1
- data/lib/generators/devise_token_auth/templates/user.rb.erb +2 -2
- data/lib/generators/devise_token_auth/templates/user_mongoid.rb.erb +2 -2
- data/test/controllers/demo_user_controller_test.rb +2 -2
- data/test/controllers/devise_token_auth/confirmations_controller_test.rb +43 -0
- data/test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb +107 -42
- data/test/controllers/devise_token_auth/passwords_controller_test.rb +112 -8
- data/test/controllers/devise_token_auth/registrations_controller_test.rb +3 -3
- data/test/dummy/app/active_record/confirmable_user.rb +11 -0
- data/test/dummy/app/controllers/overrides/confirmations_controller.rb +3 -3
- data/test/dummy/app/controllers/overrides/passwords_controller.rb +3 -3
- data/test/dummy/app/controllers/overrides/registrations_controller.rb +1 -1
- data/test/dummy/app/controllers/overrides/sessions_controller.rb +1 -1
- data/test/dummy/app/mongoid/confirmable_user.rb +52 -0
- data/test/dummy/app/views/layouts/application.html.erb +0 -2
- data/test/dummy/config/application.rb +0 -1
- data/test/dummy/config/environments/development.rb +0 -10
- data/test/dummy/config/environments/production.rb +0 -16
- data/test/dummy/config/initializers/devise.rb +275 -2
- data/test/dummy/config/initializers/devise_token_auth.rb +35 -4
- data/test/dummy/config/initializers/figaro.rb +1 -1
- data/test/dummy/config/initializers/omniauth.rb +1 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/db/migrate/20190924101113_devise_token_auth_create_confirmable_users.rb +49 -0
- data/test/dummy/db/schema.rb +26 -1
- data/test/dummy/tmp/generators/app/models/azpire/v1/human_resource/user.rb +2 -2
- data/test/dummy/tmp/generators/config/initializers/devise_token_auth.rb +10 -0
- data/test/dummy/tmp/generators/db/migrate/{20190112150327_devise_token_auth_create_azpire_v1_human_resource_users.rb → 20210126004321_devise_token_auth_create_azpire_v1_human_resource_users.rb} +1 -8
- data/test/factories/users.rb +3 -2
- data/test/lib/devise_token_auth/rails/custom_routes_test.rb +29 -0
- data/test/lib/devise_token_auth/rails/routes_test.rb +87 -0
- data/test/lib/devise_token_auth/token_factory_test.rb +191 -0
- data/test/lib/devise_token_auth/url_test.rb +2 -2
- data/test/lib/generators/devise_token_auth/install_generator_test.rb +1 -1
- data/test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb +1 -1
- data/test/models/concerns/tokens_serialization_test.rb +104 -0
- data/test/models/confirmable_user_test.rb +35 -0
- data/test/models/user_test.rb +0 -32
- data/test/test_helper.rb +1 -1
- metadata +46 -17
- data/test/dummy/config/initializers/assets.rb +0 -10
- data/test/dummy/tmp/generators/config/routes.rb +0 -4
@@ -4,10 +4,10 @@ require 'test_helper'
|
|
4
4
|
|
5
5
|
class DeviseTokenAuth::UrlTest < ActiveSupport::TestCase
|
6
6
|
describe 'DeviseTokenAuth::Url#generate' do
|
7
|
-
test 'URI fragment should appear at the end of URL' do
|
7
|
+
test 'URI fragment should appear at the end of URL with repeat of query params' do
|
8
8
|
params = { client_id: 123 }
|
9
9
|
url = 'http://example.com#fragment'
|
10
|
-
assert_equal DeviseTokenAuth::Url.send(:generate, url, params), 'http://example.com?client_id=123#fragment'
|
10
|
+
assert_equal DeviseTokenAuth::Url.send(:generate, url, params), 'http://example.com?client_id=123#fragment?client_id=123'
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'with existing query params' do
|
@@ -70,7 +70,7 @@ module DeviseTokenAuth
|
|
70
70
|
case DEVISE_TOKEN_AUTH_ORM
|
71
71
|
when :active_record
|
72
72
|
# account for rails version 5
|
73
|
-
active_record_needle = (Rails::VERSION::MAJOR
|
73
|
+
active_record_needle = (Rails::VERSION::MAJOR >= 5) ? 'ApplicationRecord' : 'ActiveRecord::Base'
|
74
74
|
|
75
75
|
@f = File.open(@fname, 'w') do |f|
|
76
76
|
f.write <<-RUBY
|
@@ -75,7 +75,7 @@ module DeviseTokenAuth
|
|
75
75
|
case DEVISE_TOKEN_AUTH_ORM
|
76
76
|
when :active_record
|
77
77
|
# account for rails version 5
|
78
|
-
active_record_needle = (Rails::VERSION::MAJOR
|
78
|
+
active_record_needle = (Rails::VERSION::MAJOR >= 5) ? 'ApplicationRecord' : 'ActiveRecord::Base'
|
79
79
|
|
80
80
|
@f = File.open(@fname, 'w') do |f|
|
81
81
|
f.write <<-RUBY
|
@@ -0,0 +1,104 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
if DEVISE_TOKEN_AUTH_ORM == :active_record
|
4
|
+
describe 'DeviseTokenAuth::Concerns::TokensSerialization' do
|
5
|
+
let(:ts) { DeviseTokenAuth::Concerns::TokensSerialization }
|
6
|
+
let(:user) { FactoryBot.create(:user) }
|
7
|
+
let(:tokens) do
|
8
|
+
# Сreate all possible token's attributes combinations
|
9
|
+
user.create_token
|
10
|
+
2.times { user.create_new_auth_token(user.tokens.first[0]) }
|
11
|
+
user.create_new_auth_token
|
12
|
+
user.create_token
|
13
|
+
|
14
|
+
user.tokens
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'is defined' do
|
18
|
+
assert_equal(ts.present?, true)
|
19
|
+
assert_kind_of(Module, ts)
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '.load(json)' do
|
23
|
+
|
24
|
+
let(:json) { JSON.generate(tokens) }
|
25
|
+
|
26
|
+
let(:default) { {} }
|
27
|
+
|
28
|
+
it 'is defined' do
|
29
|
+
assert_respond_to(ts, :load)
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'handles nil' do
|
33
|
+
assert_equal(ts.load(nil), default)
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'handles string' do
|
37
|
+
assert_equal(ts.load(json), JSON.parse(json))
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'returns object of undesirable class' do
|
41
|
+
assert_equal(ts.load([]), [])
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe '.dump(object)' do
|
46
|
+
let(:default) { 'null' }
|
47
|
+
|
48
|
+
it 'is defined' do
|
49
|
+
assert_respond_to(ts, :dump)
|
50
|
+
end
|
51
|
+
|
52
|
+
it 'handles nil' do
|
53
|
+
assert_equal(ts.dump(nil), default)
|
54
|
+
end
|
55
|
+
|
56
|
+
it 'handles empty hash' do
|
57
|
+
assert_equal(ts.dump({}), '{}')
|
58
|
+
end
|
59
|
+
|
60
|
+
it 'removes nil values' do
|
61
|
+
new_tokens = tokens.dup
|
62
|
+
new_tokens[new_tokens.first[0]][:kos] = nil
|
63
|
+
|
64
|
+
assert_equal(ts.dump(tokens), ts.dump(new_tokens))
|
65
|
+
end
|
66
|
+
|
67
|
+
describe 'updated_at' do
|
68
|
+
before do
|
69
|
+
@default_format = ::Time::DATE_FORMATS[:default]
|
70
|
+
::Time::DATE_FORMATS[:default] = 'imprecise format'
|
71
|
+
end
|
72
|
+
|
73
|
+
after do
|
74
|
+
::Time::DATE_FORMATS[:default] = @default_format
|
75
|
+
end
|
76
|
+
|
77
|
+
def updated_ats(tokens)
|
78
|
+
tokens.
|
79
|
+
values.
|
80
|
+
flat_map do |token|
|
81
|
+
[:updated_at, 'updated_at'].map do |key|
|
82
|
+
token[key]
|
83
|
+
end
|
84
|
+
end.
|
85
|
+
compact
|
86
|
+
end
|
87
|
+
|
88
|
+
it 'is defined' do
|
89
|
+
refute_empty updated_ats(tokens)
|
90
|
+
end
|
91
|
+
|
92
|
+
it 'uses iso8601' do
|
93
|
+
updated_ats(JSON.parse(ts.dump(tokens))).each do |updated_at|
|
94
|
+
Time.strptime(updated_at, '%Y-%m-%dT%H:%M:%SZ')
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
it 'does not rely on Time#to_s' do
|
99
|
+
refute_includes(updated_ats(tokens), 'imprecise format')
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'test_helper'
|
4
|
+
|
5
|
+
class ConfirmableUserTest < ActiveSupport::TestCase
|
6
|
+
describe ConfirmableUser do
|
7
|
+
describe 'creation' do
|
8
|
+
test 'email should be saved' do
|
9
|
+
@resource = create(:confirmable_user)
|
10
|
+
assert @resource.email.present?
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe 'updating email' do
|
15
|
+
test 'new email should be saved to unconfirmed_email' do
|
16
|
+
@resource = create(:confirmable_user, email: 'old_address@example.com')
|
17
|
+
@resource.update(email: 'new_address@example.com')
|
18
|
+
assert @resource.unconfirmed_email == 'new_address@example.com'
|
19
|
+
end
|
20
|
+
|
21
|
+
test 'old email should be kept in email' do
|
22
|
+
@resource = create(:confirmable_user, email: 'old_address@example.com')
|
23
|
+
@resource.update(email: 'new_address@example.com')
|
24
|
+
assert @resource.email == 'old_address@example.com'
|
25
|
+
end
|
26
|
+
|
27
|
+
test 'confirmation_token should be changed' do
|
28
|
+
@resource = create(:confirmable_user, email: 'old_address@example.com')
|
29
|
+
old_token = @resource.confirmation_token
|
30
|
+
@resource.update(email: 'new_address@example.com')
|
31
|
+
assert @resource.confirmation_token != old_token
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/test/models/user_test.rb
CHANGED
@@ -76,38 +76,6 @@ class UserTest < ActiveSupport::TestCase
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
describe 'user specific token lifespan' do
|
80
|
-
before do
|
81
|
-
@resource = create(:user, :confirmed)
|
82
|
-
|
83
|
-
auth_headers = @resource.create_new_auth_token
|
84
|
-
@token_global = auth_headers['access-token']
|
85
|
-
@client_id_global = auth_headers['client']
|
86
|
-
|
87
|
-
def @resource.token_lifespan
|
88
|
-
1.minute
|
89
|
-
end
|
90
|
-
|
91
|
-
auth_headers = @resource.create_new_auth_token
|
92
|
-
@token_specific = auth_headers['access-token']
|
93
|
-
@client_id_specific = auth_headers['client']
|
94
|
-
end
|
95
|
-
|
96
|
-
test 'works per user' do
|
97
|
-
assert @resource.token_is_current?(@token_global, @client_id_global)
|
98
|
-
|
99
|
-
time = Time.zone.now.to_i
|
100
|
-
expiry_global = @resource.tokens[@client_id_global]['expiry'] || @resource.tokens[@client_id_global][:expiry]
|
101
|
-
|
102
|
-
assert expiry_global > time + DeviseTokenAuth.token_lifespan - 5.seconds
|
103
|
-
assert expiry_global < time + DeviseTokenAuth.token_lifespan + 5.seconds
|
104
|
-
|
105
|
-
expiry_specific = @resource.tokens[@client_id_specific]['expiry'] || @resource.tokens[@client_id_specific][:expiry]
|
106
|
-
assert expiry_specific > time + 55.seconds
|
107
|
-
assert expiry_specific < time + 65.seconds
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
79
|
describe 'expired tokens are destroyed on save' do
|
112
80
|
before do
|
113
81
|
@resource = create(:user, :confirmed)
|
data/test/test_helper.rb
CHANGED
@@ -46,7 +46,7 @@ class ActiveSupport::TestCase
|
|
46
46
|
|
47
47
|
def age_token(user, client_id)
|
48
48
|
if user.tokens[client_id]
|
49
|
-
user.tokens[client_id]['updated_at'] = Time.zone.now - (DeviseTokenAuth.batch_request_buffer_throttle + 10.seconds)
|
49
|
+
user.tokens[client_id]['updated_at'] = (Time.zone.now - (DeviseTokenAuth.batch_request_buffer_throttle + 10.seconds))
|
50
50
|
user.save!
|
51
51
|
end
|
52
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_token_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lynn Hurley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 4.2.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '6'
|
22
|
+
version: '6.2'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 4.2.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '6'
|
32
|
+
version: '6.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: devise
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: 3.5.2
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '5'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,21 @@ dependencies:
|
|
49
49
|
version: 3.5.2
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '5'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: bcrypt
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '3.0'
|
60
|
+
type: :runtime
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '3.0'
|
53
67
|
- !ruby/object:Gem::Dependency
|
54
68
|
name: appraisal
|
55
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,14 +84,14 @@ dependencies:
|
|
70
84
|
requirements:
|
71
85
|
- - "~>"
|
72
86
|
- !ruby/object:Gem::Version
|
73
|
-
version: 1.
|
87
|
+
version: '1.4'
|
74
88
|
type: :development
|
75
89
|
prerelease: false
|
76
90
|
version_requirements: !ruby/object:Gem::Requirement
|
77
91
|
requirements:
|
78
92
|
- - "~>"
|
79
93
|
- !ruby/object:Gem::Version
|
80
|
-
version: 1.
|
94
|
+
version: '1.4'
|
81
95
|
- !ruby/object:Gem::Dependency
|
82
96
|
name: pg
|
83
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,10 +175,12 @@ files:
|
|
161
175
|
- app/controllers/devise_token_auth/token_validations_controller.rb
|
162
176
|
- app/controllers/devise_token_auth/unlocks_controller.rb
|
163
177
|
- app/models/devise_token_auth/concerns/active_record_support.rb
|
178
|
+
- app/models/devise_token_auth/concerns/confirmable_support.rb
|
164
179
|
- app/models/devise_token_auth/concerns/mongoid_support.rb
|
180
|
+
- app/models/devise_token_auth/concerns/tokens_serialization.rb
|
165
181
|
- app/models/devise_token_auth/concerns/user.rb
|
166
182
|
- app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb
|
167
|
-
- app/validators/
|
183
|
+
- app/validators/devise_token_auth_email_validator.rb
|
168
184
|
- app/views/devise/mailer/confirmation_instructions.html.erb
|
169
185
|
- app/views/devise/mailer/reset_password_instructions.html.erb
|
170
186
|
- app/views/devise/mailer/unlock_instructions.html.erb
|
@@ -177,6 +193,7 @@ files:
|
|
177
193
|
- config/locales/he.yml
|
178
194
|
- config/locales/it.yml
|
179
195
|
- config/locales/ja.yml
|
196
|
+
- config/locales/ko.yml
|
180
197
|
- config/locales/nl.yml
|
181
198
|
- config/locales/pl.yml
|
182
199
|
- config/locales/pt-BR.yml
|
@@ -197,6 +214,7 @@ files:
|
|
197
214
|
- lib/devise_token_auth/engine.rb
|
198
215
|
- lib/devise_token_auth/errors.rb
|
199
216
|
- lib/devise_token_auth/rails/routes.rb
|
217
|
+
- lib/devise_token_auth/token_factory.rb
|
200
218
|
- lib/devise_token_auth/url.rb
|
201
219
|
- lib/devise_token_auth/version.rb
|
202
220
|
- lib/generators/devise_token_auth/USAGE
|
@@ -232,6 +250,7 @@ files:
|
|
232
250
|
- test/controllers/overrides/sessions_controller_test.rb
|
233
251
|
- test/controllers/overrides/token_validations_controller_test.rb
|
234
252
|
- test/dummy/README.rdoc
|
253
|
+
- test/dummy/app/active_record/confirmable_user.rb
|
235
254
|
- test/dummy/app/active_record/lockable_user.rb
|
236
255
|
- test/dummy/app/active_record/mang.rb
|
237
256
|
- test/dummy/app/active_record/only_email_user.rb
|
@@ -258,6 +277,7 @@ files:
|
|
258
277
|
- test/dummy/app/controllers/overrides/token_validations_controller.rb
|
259
278
|
- test/dummy/app/helpers/application_helper.rb
|
260
279
|
- test/dummy/app/models/concerns/favorite_color.rb
|
280
|
+
- test/dummy/app/mongoid/confirmable_user.rb
|
261
281
|
- test/dummy/app/mongoid/lockable_user.rb
|
262
282
|
- test/dummy/app/mongoid/mang.rb
|
263
283
|
- test/dummy/app/mongoid/only_email_user.rb
|
@@ -274,7 +294,6 @@ files:
|
|
274
294
|
- test/dummy/config/environments/development.rb
|
275
295
|
- test/dummy/config/environments/production.rb
|
276
296
|
- test/dummy/config/environments/test.rb
|
277
|
-
- test/dummy/config/initializers/assets.rb
|
278
297
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
279
298
|
- test/dummy/config/initializers/cookies_serializer.rb
|
280
299
|
- test/dummy/config/initializers/devise.rb
|
@@ -297,19 +316,24 @@ files:
|
|
297
316
|
- test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb
|
298
317
|
- test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb
|
299
318
|
- test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb
|
319
|
+
- test/dummy/db/migrate/20190924101113_devise_token_auth_create_confirmable_users.rb
|
300
320
|
- test/dummy/db/schema.rb
|
301
321
|
- test/dummy/lib/migration_database_helper.rb
|
302
322
|
- test/dummy/tmp/generators/app/models/azpire/v1/human_resource/user.rb
|
303
323
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
304
|
-
- test/dummy/tmp/generators/
|
305
|
-
- test/dummy/tmp/generators/db/migrate/20190112150327_devise_token_auth_create_azpire_v1_human_resource_users.rb
|
324
|
+
- test/dummy/tmp/generators/db/migrate/20210126004321_devise_token_auth_create_azpire_v1_human_resource_users.rb
|
306
325
|
- test/factories/users.rb
|
307
326
|
- test/lib/devise_token_auth/blacklist_test.rb
|
327
|
+
- test/lib/devise_token_auth/rails/custom_routes_test.rb
|
328
|
+
- test/lib/devise_token_auth/rails/routes_test.rb
|
329
|
+
- test/lib/devise_token_auth/token_factory_test.rb
|
308
330
|
- test/lib/devise_token_auth/url_test.rb
|
309
331
|
- test/lib/generators/devise_token_auth/install_generator_test.rb
|
310
332
|
- test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb
|
311
333
|
- test/lib/generators/devise_token_auth/install_views_generator_test.rb
|
312
334
|
- test/models/concerns/mongoid_support_test.rb
|
335
|
+
- test/models/concerns/tokens_serialization_test.rb
|
336
|
+
- test/models/confirmable_user_test.rb
|
313
337
|
- test/models/only_email_user_test.rb
|
314
338
|
- test/models/user_test.rb
|
315
339
|
- test/support/controllers/routes.rb
|
@@ -333,14 +357,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
333
357
|
- !ruby/object:Gem::Version
|
334
358
|
version: '0'
|
335
359
|
requirements: []
|
336
|
-
|
337
|
-
rubygems_version: 2.7.9
|
360
|
+
rubygems_version: 3.0.3
|
338
361
|
signing_key:
|
339
362
|
specification_version: 4
|
340
363
|
summary: Token based authentication for rails. Uses Devise + OmniAuth.
|
341
364
|
test_files:
|
342
365
|
- test/dummy/app/mongoid/only_email_user.rb
|
343
366
|
- test/dummy/app/mongoid/scoped_user.rb
|
367
|
+
- test/dummy/app/mongoid/confirmable_user.rb
|
344
368
|
- test/dummy/app/mongoid/mang.rb
|
345
369
|
- test/dummy/app/mongoid/unregisterable_user.rb
|
346
370
|
- test/dummy/app/mongoid/lockable_user.rb
|
@@ -349,6 +373,7 @@ test_files:
|
|
349
373
|
- test/dummy/app/models/concerns/favorite_color.rb
|
350
374
|
- test/dummy/app/active_record/only_email_user.rb
|
351
375
|
- test/dummy/app/active_record/scoped_user.rb
|
376
|
+
- test/dummy/app/active_record/confirmable_user.rb
|
352
377
|
- test/dummy/app/active_record/mang.rb
|
353
378
|
- test/dummy/app/active_record/unregisterable_user.rb
|
354
379
|
- test/dummy/app/active_record/lockable_user.rb
|
@@ -388,7 +413,6 @@ test_files:
|
|
388
413
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
389
414
|
- test/dummy/config/initializers/session_store.rb
|
390
415
|
- test/dummy/config/initializers/wrap_parameters.rb
|
391
|
-
- test/dummy/config/initializers/assets.rb
|
392
416
|
- test/dummy/config/initializers/cookies_serializer.rb
|
393
417
|
- test/dummy/config/initializers/devise.rb
|
394
418
|
- test/dummy/config/initializers/omniauth.rb
|
@@ -406,18 +430,23 @@ test_files:
|
|
406
430
|
- test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb
|
407
431
|
- test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb
|
408
432
|
- test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb
|
433
|
+
- test/dummy/db/migrate/20190924101113_devise_token_auth_create_confirmable_users.rb
|
409
434
|
- test/dummy/tmp/generators/app/models/azpire/v1/human_resource/user.rb
|
410
|
-
- test/dummy/tmp/generators/config/routes.rb
|
411
435
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
412
|
-
- test/dummy/tmp/generators/db/migrate/
|
436
|
+
- test/dummy/tmp/generators/db/migrate/20210126004321_devise_token_auth_create_azpire_v1_human_resource_users.rb
|
413
437
|
- test/dummy/README.rdoc
|
414
438
|
- test/models/only_email_user_test.rb
|
439
|
+
- test/models/confirmable_user_test.rb
|
415
440
|
- test/models/concerns/mongoid_support_test.rb
|
441
|
+
- test/models/concerns/tokens_serialization_test.rb
|
416
442
|
- test/models/user_test.rb
|
417
443
|
- test/support/controllers/routes.rb
|
418
444
|
- test/factories/users.rb
|
419
445
|
- test/lib/devise_token_auth/url_test.rb
|
420
446
|
- test/lib/devise_token_auth/blacklist_test.rb
|
447
|
+
- test/lib/devise_token_auth/token_factory_test.rb
|
448
|
+
- test/lib/devise_token_auth/rails/custom_routes_test.rb
|
449
|
+
- test/lib/devise_token_auth/rails/routes_test.rb
|
421
450
|
- test/lib/generators/devise_token_auth/install_generator_test.rb
|
422
451
|
- test/lib/generators/devise_token_auth/install_views_generator_test.rb
|
423
452
|
- test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Be sure to restart your server when you modify this file.
|
4
|
-
|
5
|
-
# Version of your assets, change this if you want to expire all your assets.
|
6
|
-
Rails.application.config.assets.version = '1.0'
|
7
|
-
|
8
|
-
# Precompile additional assets.
|
9
|
-
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
10
|
-
# Rails.application.config.assets.precompile += %w( search.js )
|