devise_token_auth 1.2.0 → 1.2.2
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/README.md +2 -1
- data/app/controllers/devise_token_auth/application_controller.rb +13 -0
- data/app/controllers/devise_token_auth/concerns/resource_finder.rb +2 -1
- data/app/controllers/devise_token_auth/concerns/set_user_by_token.rb +20 -7
- data/app/controllers/devise_token_auth/confirmations_controller.rb +8 -5
- data/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb +18 -21
- data/app/controllers/devise_token_auth/passwords_controller.rb +9 -3
- data/app/controllers/devise_token_auth/sessions_controller.rb +26 -10
- data/app/controllers/devise_token_auth/unlocks_controller.rb +3 -2
- data/app/models/devise_token_auth/concerns/user.rb +34 -11
- data/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb +9 -5
- data/app/validators/devise_token_auth_email_validator.rb +9 -1
- data/config/locales/ja.yml +12 -0
- data/lib/devise_token_auth/engine.rb +5 -2
- data/lib/devise_token_auth/rails/routes.rb +6 -5
- data/lib/devise_token_auth/version.rb +1 -1
- data/lib/generators/devise_token_auth/templates/devise_token_auth.rb +11 -5
- data/test/controllers/custom/custom_confirmations_controller_test.rb +1 -1
- data/test/controllers/custom/custom_omniauth_callbacks_controller_test.rb +1 -1
- data/test/controllers/demo_mang_controller_test.rb +37 -8
- data/test/controllers/demo_user_controller_test.rb +37 -8
- data/test/controllers/devise_token_auth/confirmations_controller_test.rb +19 -7
- data/test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb +16 -19
- data/test/controllers/devise_token_auth/passwords_controller_test.rb +6 -6
- data/test/controllers/devise_token_auth/registrations_controller_test.rb +2 -2
- data/test/controllers/devise_token_auth/sessions_controller_test.rb +111 -38
- data/test/controllers/devise_token_auth/token_validations_controller_test.rb +41 -1
- data/test/controllers/devise_token_auth/unlocks_controller_test.rb +28 -6
- data/test/controllers/overrides/omniauth_callbacks_controller_test.rb +1 -1
- data/test/dummy/app/controllers/application_controller.rb +2 -6
- data/test/dummy/app/controllers/overrides/confirmations_controller.rb +2 -1
- data/test/dummy/app/controllers/overrides/passwords_controller.rb +2 -1
- data/test/dummy/config/environments/test.rb +6 -2
- data/test/dummy/db/schema.rb +5 -5
- data/test/dummy/tmp/generators/app/models/user.rb +9 -0
- data/test/dummy/tmp/generators/config/initializers/devise_token_auth.rb +11 -5
- data/test/dummy/tmp/generators/db/migrate/20230415183419_devise_token_auth_create_users.rb +49 -0
- data/test/models/user_test.rb +22 -0
- metadata +94 -94
- data/test/dummy/tmp/generators/app/controllers/application_controller.rb +0 -6
- data/test/dummy/tmp/generators/app/models/azpire/v1/human_resource/user.rb +0 -56
@@ -18,11 +18,51 @@ class DeviseTokenAuth::TokenValidationsControllerTest < ActionDispatch::Integrat
|
|
18
18
|
@token = @auth_headers['access-token']
|
19
19
|
@client_id = @auth_headers['client']
|
20
20
|
@expiry = @auth_headers['expiry']
|
21
|
-
|
21
|
+
@authorization_header = @auth_headers.slice('Authorization')
|
22
22
|
# ensure that request is not treated as batch request
|
23
23
|
age_token(@resource, @client_id)
|
24
24
|
end
|
25
25
|
|
26
|
+
describe 'using only Authorization header' do
|
27
|
+
describe 'using valid Authorization header' do
|
28
|
+
before do
|
29
|
+
get '/auth/validate_token', params: {}, headers: @authorization_header
|
30
|
+
end
|
31
|
+
|
32
|
+
test 'token valid' do
|
33
|
+
assert_equal 200, response.status
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
describe 'using invalid Authorization header' do
|
38
|
+
describe 'with invalid base64' do
|
39
|
+
before do
|
40
|
+
get '/auth/validate_token', params: {}, headers: {'Authorization': 'Bearer invalidtoken=='}
|
41
|
+
end
|
42
|
+
|
43
|
+
test 'returns access denied' do
|
44
|
+
assert_equal 401, response.status
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'with valid base64' do
|
49
|
+
before do
|
50
|
+
valid_base64 = Base64.strict_encode64({
|
51
|
+
"access-token": 'invalidtoken',
|
52
|
+
"token-type": 'Bearer',
|
53
|
+
"client": 'client',
|
54
|
+
"expiry": '1234567'
|
55
|
+
}.to_json)
|
56
|
+
get '/auth/validate_token', params: {}, headers: {'Authorization': "Bearer #{valid_base64}"}
|
57
|
+
end
|
58
|
+
|
59
|
+
test 'returns access denied' do
|
60
|
+
assert_equal 401, response.status
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
26
66
|
describe 'vanilla user' do
|
27
67
|
before do
|
28
68
|
get '/auth/validate_token', params: {}, headers: @auth_headers
|
@@ -81,17 +81,19 @@ class DeviseTokenAuth::UnlocksControllerTest < ActionController::TestCase
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
-
test '
|
85
|
-
assert_equal
|
84
|
+
test 'should always return success' do
|
85
|
+
assert_equal 200, response.status
|
86
86
|
end
|
87
87
|
|
88
|
-
test 'errors should be returned' do
|
89
|
-
assert @data['
|
90
|
-
assert_equal
|
88
|
+
test 'errors should not be returned' do
|
89
|
+
assert @data['success']
|
90
|
+
assert_equal \
|
91
|
+
@data['message'],
|
92
|
+
I18n.t('devise_token_auth.unlocks.sended_paranoid')
|
91
93
|
end
|
92
94
|
end
|
93
95
|
|
94
|
-
describe 'successfully requested unlock' do
|
96
|
+
describe 'successfully requested unlock without paranoid mode' do
|
95
97
|
before do
|
96
98
|
post :create, params: { email: @resource.email }
|
97
99
|
|
@@ -103,6 +105,26 @@ class DeviseTokenAuth::UnlocksControllerTest < ActionController::TestCase
|
|
103
105
|
end
|
104
106
|
end
|
105
107
|
|
108
|
+
describe 'successfully requested unlock with paranoid mode' do
|
109
|
+
before do
|
110
|
+
swap Devise, paranoid: true do
|
111
|
+
post :create, params: { email: @resource.email }
|
112
|
+
@data = JSON.parse(response.body)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
test 'should always return success' do
|
117
|
+
assert_equal 200, response.status
|
118
|
+
end
|
119
|
+
|
120
|
+
test 'errors should not be returned' do
|
121
|
+
assert @data['success']
|
122
|
+
assert_equal \
|
123
|
+
@data['message'],
|
124
|
+
I18n.t('devise_token_auth.unlocks.sended_paranoid')
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
106
128
|
describe 'case-sensitive email' do
|
107
129
|
before do
|
108
130
|
post :create, params: { email: @resource.email }
|
@@ -25,7 +25,7 @@ class Overrides::OmniauthCallbacksControllerTest < ActionDispatch::IntegrationTe
|
|
25
25
|
|
26
26
|
@favorite_color = 'gray'
|
27
27
|
|
28
|
-
|
28
|
+
post '/evil_user_auth/facebook',
|
29
29
|
params: {
|
30
30
|
auth_origin_url: Faker::Internet.url,
|
31
31
|
favorite_color: @favorite_color,
|
@@ -8,11 +8,7 @@ class ApplicationController < ActionController::Base
|
|
8
8
|
protected
|
9
9
|
|
10
10
|
def configure_permitted_parameters
|
11
|
-
|
12
|
-
|
13
|
-
permitted_parameters[:sign_up] << :favorite_color
|
14
|
-
permitted_parameters[:account_update] << :operating_thetan
|
15
|
-
permitted_parameters[:account_update] << :favorite_color
|
16
|
-
permitted_parameters[:account_update] << :current_password
|
11
|
+
devise_parameter_sanitizer.permit(:sign_up, keys: [:operating_thetan, :favorite_color])
|
12
|
+
devise_parameter_sanitizer.permit(:account_update, keys: [:operating_thetan, :favorite_color, :current_password])
|
17
13
|
end
|
18
14
|
end
|
@@ -15,14 +15,18 @@ Rails.application.configure do
|
|
15
15
|
config.eager_load = false
|
16
16
|
|
17
17
|
# Configure static asset server for tests with Cache-Control for performance.
|
18
|
-
Rails::VERSION::MAJOR
|
18
|
+
Rails::VERSION::MAJOR >= 5 ?
|
19
19
|
(config.public_file_server.enabled = true) :
|
20
20
|
(config.serve_static_files = true)
|
21
21
|
|
22
|
-
Rails::VERSION::MAJOR
|
22
|
+
Rails::VERSION::MAJOR >= 5 ?
|
23
23
|
(config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }) :
|
24
24
|
(config.static_cache_control = 'public, max-age=3600')
|
25
25
|
|
26
|
+
if Rails::VERSION::MAJOR > 6 && ENV['DEVISE_TOKEN_AUTH_ORM'] != 'mongoid'
|
27
|
+
config.active_record.legacy_connection_handling = false
|
28
|
+
end
|
29
|
+
|
26
30
|
# Show full error reports and disable caching.
|
27
31
|
config.consider_all_requests_local = true
|
28
32
|
config.action_controller.perform_caching = false
|
data/test/dummy/db/schema.rb
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# of editing this file, please use the migrations feature of Active Record to
|
3
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
4
4
|
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
# from scratch.
|
9
|
-
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
6
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class User < ActiveRecord::Base
|
4
|
+
# Include default devise modules. Others available are:
|
5
|
+
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
|
6
|
+
devise :database_authenticatable, :registerable,
|
7
|
+
:recoverable, :rememberable, :validatable
|
8
|
+
include DeviseTokenAuth::Concerns::User
|
9
|
+
end
|
@@ -42,11 +42,17 @@ DeviseTokenAuth.setup do |config|
|
|
42
42
|
# config.default_callbacks = true
|
43
43
|
|
44
44
|
# Makes it possible to change the headers names
|
45
|
-
# config.headers_names = {
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
45
|
+
# config.headers_names = {
|
46
|
+
# :'authorization' => 'Authorization',
|
47
|
+
# :'access-token' => 'access-token',
|
48
|
+
# :'client' => 'client',
|
49
|
+
# :'expiry' => 'expiry',
|
50
|
+
# :'uid' => 'uid',
|
51
|
+
# :'token-type' => 'token-type'
|
52
|
+
# }
|
53
|
+
|
54
|
+
# Makes it possible to use custom uid column
|
55
|
+
# config.other_uid = "foo"
|
50
56
|
|
51
57
|
# By default, only Bearer Token authentication is implemented out of the box.
|
52
58
|
# If, however, you wish to integrate with legacy Devise authentication, you can
|
@@ -0,0 +1,49 @@
|
|
1
|
+
class DeviseTokenAuthCreateUsers < ActiveRecord::Migration[7.0]
|
2
|
+
def change
|
3
|
+
|
4
|
+
create_table(:users, id: :uuid) do |t|
|
5
|
+
## Required
|
6
|
+
t.string :provider, :null => false, :default => "email"
|
7
|
+
t.string :uid, :null => false, :default => ""
|
8
|
+
|
9
|
+
## Database authenticatable
|
10
|
+
t.string :encrypted_password, :null => false, :default => ""
|
11
|
+
|
12
|
+
## Recoverable
|
13
|
+
t.string :reset_password_token
|
14
|
+
t.datetime :reset_password_sent_at
|
15
|
+
t.boolean :allow_password_change, :default => false
|
16
|
+
|
17
|
+
## Rememberable
|
18
|
+
t.datetime :remember_created_at
|
19
|
+
|
20
|
+
## Confirmable
|
21
|
+
t.string :confirmation_token
|
22
|
+
t.datetime :confirmed_at
|
23
|
+
t.datetime :confirmation_sent_at
|
24
|
+
t.string :unconfirmed_email # Only if using reconfirmable
|
25
|
+
|
26
|
+
## Lockable
|
27
|
+
# t.integer :failed_attempts, :default => 0, :null => false # Only if lock strategy is :failed_attempts
|
28
|
+
# t.string :unlock_token # Only if unlock strategy is :email or :both
|
29
|
+
# t.datetime :locked_at
|
30
|
+
|
31
|
+
## User Info
|
32
|
+
t.string :name
|
33
|
+
t.string :nickname
|
34
|
+
t.string :image
|
35
|
+
t.string :email
|
36
|
+
|
37
|
+
## Tokens
|
38
|
+
t.text :tokens
|
39
|
+
|
40
|
+
t.timestamps
|
41
|
+
end
|
42
|
+
|
43
|
+
add_index :users, :email, unique: true
|
44
|
+
add_index :users, [:uid, :provider], unique: true
|
45
|
+
add_index :users, :reset_password_token, unique: true
|
46
|
+
add_index :users, :confirmation_token, unique: true
|
47
|
+
# add_index :users, :unlock_token, unique: true
|
48
|
+
end
|
49
|
+
end
|
data/test/models/user_test.rb
CHANGED
@@ -76,6 +76,28 @@ class UserTest < ActiveSupport::TestCase
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
+
describe 'previous token' do
|
80
|
+
before do
|
81
|
+
@resource = create(:user, :confirmed)
|
82
|
+
|
83
|
+
@auth_headers1 = @resource.create_new_auth_token
|
84
|
+
end
|
85
|
+
|
86
|
+
test 'should properly indicate whether previous token is current' do
|
87
|
+
assert @resource.token_is_current?(@auth_headers1['access-token'], @auth_headers1['client'])
|
88
|
+
# create another token, emulating a new request
|
89
|
+
@auth_headers2 = @resource.create_new_auth_token
|
90
|
+
|
91
|
+
# should work for previous token
|
92
|
+
assert @resource.token_is_current?(@auth_headers1['access-token'], @auth_headers1['client'])
|
93
|
+
# should work for latest token as well
|
94
|
+
assert @resource.token_is_current?(@auth_headers2['access-token'], @auth_headers2['client'])
|
95
|
+
|
96
|
+
# after using latest token, previous token should not work
|
97
|
+
assert @resource.token_is_current?(@auth_headers1['access-token'], @auth_headers1['client'])
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
79
101
|
describe 'expired tokens are destroyed on save' do
|
80
102
|
before do
|
81
103
|
@resource = create(:user, :confirmed)
|
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.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lynn Hurley
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-06-11 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: '
|
22
|
+
version: '7.1'
|
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: '
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: devise
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,14 +146,14 @@ dependencies:
|
|
146
146
|
requirements:
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: '
|
149
|
+
version: '2.0'
|
150
150
|
type: :development
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
154
|
- - "~>"
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: '
|
156
|
+
version: '2.0'
|
157
157
|
description: For use with client side single page apps such as the venerable https://github.com/lynndylanhurley/ng-token-auth.
|
158
158
|
email:
|
159
159
|
- lynn.dylan.hurley@gmail.com
|
@@ -319,9 +319,9 @@ files:
|
|
319
319
|
- test/dummy/db/migrate/20190924101113_devise_token_auth_create_confirmable_users.rb
|
320
320
|
- test/dummy/db/schema.rb
|
321
321
|
- test/dummy/lib/migration_database_helper.rb
|
322
|
-
- test/dummy/tmp/generators/app/
|
323
|
-
- test/dummy/tmp/generators/app/models/azpire/v1/human_resource/user.rb
|
322
|
+
- test/dummy/tmp/generators/app/models/user.rb
|
324
323
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
324
|
+
- test/dummy/tmp/generators/db/migrate/20230415183419_devise_token_auth_create_users.rb
|
325
325
|
- test/factories/users.rb
|
326
326
|
- test/lib/devise_token_auth/blacklist_test.rb
|
327
327
|
- test/lib/devise_token_auth/rails/custom_routes_test.rb
|
@@ -338,11 +338,11 @@ files:
|
|
338
338
|
- test/models/user_test.rb
|
339
339
|
- test/support/controllers/routes.rb
|
340
340
|
- test/test_helper.rb
|
341
|
-
homepage:
|
341
|
+
homepage: https://github.com/lynndylanhurley/devise_token_auth
|
342
342
|
licenses:
|
343
343
|
- WTFPL
|
344
344
|
metadata: {}
|
345
|
-
post_install_message:
|
345
|
+
post_install_message:
|
346
346
|
rdoc_options: []
|
347
347
|
require_paths:
|
348
348
|
- lib
|
@@ -350,126 +350,126 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
350
350
|
requirements:
|
351
351
|
- - ">="
|
352
352
|
- !ruby/object:Gem::Version
|
353
|
-
version: 2.
|
353
|
+
version: 2.3.0
|
354
354
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
355
355
|
requirements:
|
356
356
|
- - ">="
|
357
357
|
- !ruby/object:Gem::Version
|
358
358
|
version: '0'
|
359
359
|
requirements: []
|
360
|
-
rubygems_version: 3.
|
361
|
-
signing_key:
|
360
|
+
rubygems_version: 3.3.7
|
361
|
+
signing_key:
|
362
362
|
specification_version: 4
|
363
363
|
summary: Token based authentication for rails. Uses Devise + OmniAuth.
|
364
364
|
test_files:
|
365
|
-
- test/
|
366
|
-
- test/
|
367
|
-
- test/
|
368
|
-
- test/
|
369
|
-
- test/
|
370
|
-
- test/
|
371
|
-
- test/
|
372
|
-
- test/
|
373
|
-
- test/
|
374
|
-
- test/
|
375
|
-
- test/
|
365
|
+
- test/controllers/custom/custom_confirmations_controller_test.rb
|
366
|
+
- test/controllers/custom/custom_omniauth_callbacks_controller_test.rb
|
367
|
+
- test/controllers/custom/custom_passwords_controller_test.rb
|
368
|
+
- test/controllers/custom/custom_registrations_controller_test.rb
|
369
|
+
- test/controllers/custom/custom_sessions_controller_test.rb
|
370
|
+
- test/controllers/custom/custom_token_validations_controller_test.rb
|
371
|
+
- test/controllers/demo_group_controller_test.rb
|
372
|
+
- test/controllers/demo_mang_controller_test.rb
|
373
|
+
- test/controllers/demo_user_controller_test.rb
|
374
|
+
- test/controllers/devise_token_auth/confirmations_controller_test.rb
|
375
|
+
- test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb
|
376
|
+
- test/controllers/devise_token_auth/passwords_controller_test.rb
|
377
|
+
- test/controllers/devise_token_auth/registrations_controller_test.rb
|
378
|
+
- test/controllers/devise_token_auth/sessions_controller_test.rb
|
379
|
+
- test/controllers/devise_token_auth/token_validations_controller_test.rb
|
380
|
+
- test/controllers/devise_token_auth/unlocks_controller_test.rb
|
381
|
+
- test/controllers/overrides/confirmations_controller_test.rb
|
382
|
+
- test/controllers/overrides/omniauth_callbacks_controller_test.rb
|
383
|
+
- test/controllers/overrides/passwords_controller_test.rb
|
384
|
+
- test/controllers/overrides/registrations_controller_test.rb
|
385
|
+
- test/controllers/overrides/sessions_controller_test.rb
|
386
|
+
- test/controllers/overrides/token_validations_controller_test.rb
|
387
|
+
- test/dummy/README.rdoc
|
376
388
|
- test/dummy/app/active_record/confirmable_user.rb
|
377
|
-
- test/dummy/app/active_record/mang.rb
|
378
|
-
- test/dummy/app/active_record/unregisterable_user.rb
|
379
389
|
- test/dummy/app/active_record/lockable_user.rb
|
390
|
+
- test/dummy/app/active_record/mang.rb
|
391
|
+
- test/dummy/app/active_record/only_email_user.rb
|
392
|
+
- test/dummy/app/active_record/scoped_user.rb
|
380
393
|
- test/dummy/app/active_record/unconfirmable_user.rb
|
394
|
+
- test/dummy/app/active_record/unregisterable_user.rb
|
381
395
|
- test/dummy/app/active_record/user.rb
|
382
|
-
- test/dummy/app/controllers/overrides/token_validations_controller.rb
|
383
|
-
- test/dummy/app/controllers/overrides/omniauth_callbacks_controller.rb
|
384
|
-
- test/dummy/app/controllers/overrides/passwords_controller.rb
|
385
|
-
- test/dummy/app/controllers/overrides/sessions_controller.rb
|
386
|
-
- test/dummy/app/controllers/overrides/confirmations_controller.rb
|
387
|
-
- test/dummy/app/controllers/overrides/registrations_controller.rb
|
388
396
|
- test/dummy/app/controllers/application_controller.rb
|
389
|
-
- test/dummy/app/controllers/demo_user_controller.rb
|
390
397
|
- test/dummy/app/controllers/auth_origin_controller.rb
|
391
|
-
- test/dummy/app/controllers/
|
392
|
-
- test/dummy/app/controllers/demo_group_controller.rb
|
393
|
-
- test/dummy/app/controllers/custom/token_validations_controller.rb
|
398
|
+
- test/dummy/app/controllers/custom/confirmations_controller.rb
|
394
399
|
- test/dummy/app/controllers/custom/omniauth_callbacks_controller.rb
|
395
400
|
- test/dummy/app/controllers/custom/passwords_controller.rb
|
396
|
-
- test/dummy/app/controllers/custom/sessions_controller.rb
|
397
|
-
- test/dummy/app/controllers/custom/confirmations_controller.rb
|
398
401
|
- test/dummy/app/controllers/custom/registrations_controller.rb
|
399
|
-
- test/dummy/app/
|
402
|
+
- test/dummy/app/controllers/custom/sessions_controller.rb
|
403
|
+
- test/dummy/app/controllers/custom/token_validations_controller.rb
|
404
|
+
- test/dummy/app/controllers/demo_group_controller.rb
|
405
|
+
- test/dummy/app/controllers/demo_mang_controller.rb
|
406
|
+
- test/dummy/app/controllers/demo_user_controller.rb
|
407
|
+
- test/dummy/app/controllers/overrides/confirmations_controller.rb
|
408
|
+
- test/dummy/app/controllers/overrides/omniauth_callbacks_controller.rb
|
409
|
+
- test/dummy/app/controllers/overrides/passwords_controller.rb
|
410
|
+
- test/dummy/app/controllers/overrides/registrations_controller.rb
|
411
|
+
- test/dummy/app/controllers/overrides/sessions_controller.rb
|
412
|
+
- test/dummy/app/controllers/overrides/token_validations_controller.rb
|
400
413
|
- test/dummy/app/helpers/application_helper.rb
|
401
|
-
- test/dummy/
|
402
|
-
- test/dummy/
|
403
|
-
- test/dummy/
|
404
|
-
- test/dummy/
|
405
|
-
- test/dummy/
|
406
|
-
- test/dummy/
|
414
|
+
- test/dummy/app/models/concerns/favorite_color.rb
|
415
|
+
- test/dummy/app/mongoid/confirmable_user.rb
|
416
|
+
- test/dummy/app/mongoid/lockable_user.rb
|
417
|
+
- test/dummy/app/mongoid/mang.rb
|
418
|
+
- test/dummy/app/mongoid/only_email_user.rb
|
419
|
+
- test/dummy/app/mongoid/scoped_user.rb
|
420
|
+
- test/dummy/app/mongoid/unconfirmable_user.rb
|
421
|
+
- test/dummy/app/mongoid/unregisterable_user.rb
|
422
|
+
- test/dummy/app/mongoid/user.rb
|
423
|
+
- test/dummy/app/views/layouts/application.html.erb
|
407
424
|
- test/dummy/config/application.rb
|
408
|
-
- test/dummy/config/boot.rb
|
409
425
|
- test/dummy/config/application.yml.bk
|
426
|
+
- test/dummy/config/boot.rb
|
427
|
+
- test/dummy/config/environment.rb
|
428
|
+
- test/dummy/config/environments/development.rb
|
429
|
+
- test/dummy/config/environments/production.rb
|
430
|
+
- test/dummy/config/environments/test.rb
|
410
431
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
432
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
433
|
+
- test/dummy/config/initializers/devise.rb
|
411
434
|
- test/dummy/config/initializers/devise_token_auth.rb
|
412
|
-
- test/dummy/config/initializers/
|
435
|
+
- test/dummy/config/initializers/figaro.rb
|
413
436
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
437
|
+
- test/dummy/config/initializers/inflections.rb
|
438
|
+
- test/dummy/config/initializers/mime_types.rb
|
439
|
+
- test/dummy/config/initializers/omniauth.rb
|
414
440
|
- test/dummy/config/initializers/session_store.rb
|
415
441
|
- test/dummy/config/initializers/wrap_parameters.rb
|
416
|
-
- test/dummy/config/
|
417
|
-
- test/dummy/config/
|
418
|
-
- test/dummy/config/initializers/omniauth.rb
|
419
|
-
- test/dummy/config/initializers/inflections.rb
|
420
|
-
- test/dummy/config/initializers/figaro.rb
|
442
|
+
- test/dummy/config/routes.rb
|
443
|
+
- test/dummy/config/spring.rb
|
421
444
|
- test/dummy/config.ru
|
422
|
-
- test/dummy/
|
423
|
-
- test/dummy/db/
|
424
|
-
- test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb
|
445
|
+
- test/dummy/db/migrate/20140715061447_devise_token_auth_create_users.rb
|
446
|
+
- test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb
|
425
447
|
- test/dummy/db/migrate/20140829044006_add_operating_thetan_to_user.rb
|
426
448
|
- test/dummy/db/migrate/20140916224624_add_favorite_color_to_mangs.rb
|
427
|
-
- test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb
|
428
449
|
- test/dummy/db/migrate/20141222035835_devise_token_auth_create_only_email_users.rb
|
429
|
-
- test/dummy/db/migrate/
|
450
|
+
- test/dummy/db/migrate/20141222053502_devise_token_auth_create_unregisterable_users.rb
|
451
|
+
- test/dummy/db/migrate/20150708104536_devise_token_auth_create_unconfirmable_users.rb
|
430
452
|
- test/dummy/db/migrate/20160103235141_devise_token_auth_create_scoped_users.rb
|
431
|
-
- test/dummy/db/migrate/
|
432
|
-
- test/dummy/db/migrate/20140715061805_devise_token_auth_create_mangs.rb
|
453
|
+
- test/dummy/db/migrate/20160629184441_devise_token_auth_create_lockable_users.rb
|
433
454
|
- test/dummy/db/migrate/20190924101113_devise_token_auth_create_confirmable_users.rb
|
434
|
-
- test/dummy/
|
435
|
-
- test/dummy/
|
455
|
+
- test/dummy/db/schema.rb
|
456
|
+
- test/dummy/lib/migration_database_helper.rb
|
457
|
+
- test/dummy/tmp/generators/app/models/user.rb
|
436
458
|
- test/dummy/tmp/generators/config/initializers/devise_token_auth.rb
|
437
|
-
- test/dummy/
|
438
|
-
- test/models/only_email_user_test.rb
|
439
|
-
- test/models/confirmable_user_test.rb
|
440
|
-
- test/models/concerns/mongoid_support_test.rb
|
441
|
-
- test/models/concerns/tokens_serialization_test.rb
|
442
|
-
- test/models/user_test.rb
|
443
|
-
- test/support/controllers/routes.rb
|
459
|
+
- test/dummy/tmp/generators/db/migrate/20230415183419_devise_token_auth_create_users.rb
|
444
460
|
- test/factories/users.rb
|
445
|
-
- test/lib/devise_token_auth/url_test.rb
|
446
461
|
- test/lib/devise_token_auth/blacklist_test.rb
|
447
|
-
- test/lib/devise_token_auth/token_factory_test.rb
|
448
462
|
- test/lib/devise_token_auth/rails/custom_routes_test.rb
|
449
463
|
- test/lib/devise_token_auth/rails/routes_test.rb
|
464
|
+
- test/lib/devise_token_auth/token_factory_test.rb
|
465
|
+
- test/lib/devise_token_auth/url_test.rb
|
450
466
|
- test/lib/generators/devise_token_auth/install_generator_test.rb
|
451
|
-
- test/lib/generators/devise_token_auth/install_views_generator_test.rb
|
452
467
|
- test/lib/generators/devise_token_auth/install_generator_with_namespace_test.rb
|
468
|
+
- test/lib/generators/devise_token_auth/install_views_generator_test.rb
|
469
|
+
- test/models/concerns/mongoid_support_test.rb
|
470
|
+
- test/models/concerns/tokens_serialization_test.rb
|
471
|
+
- test/models/confirmable_user_test.rb
|
472
|
+
- test/models/only_email_user_test.rb
|
473
|
+
- test/models/user_test.rb
|
474
|
+
- test/support/controllers/routes.rb
|
453
475
|
- test/test_helper.rb
|
454
|
-
- test/controllers/overrides/token_validations_controller_test.rb
|
455
|
-
- test/controllers/overrides/confirmations_controller_test.rb
|
456
|
-
- test/controllers/overrides/registrations_controller_test.rb
|
457
|
-
- test/controllers/overrides/omniauth_callbacks_controller_test.rb
|
458
|
-
- test/controllers/overrides/sessions_controller_test.rb
|
459
|
-
- test/controllers/overrides/passwords_controller_test.rb
|
460
|
-
- test/controllers/demo_mang_controller_test.rb
|
461
|
-
- test/controllers/devise_token_auth/token_validations_controller_test.rb
|
462
|
-
- test/controllers/devise_token_auth/confirmations_controller_test.rb
|
463
|
-
- test/controllers/devise_token_auth/unlocks_controller_test.rb
|
464
|
-
- test/controllers/devise_token_auth/registrations_controller_test.rb
|
465
|
-
- test/controllers/devise_token_auth/omniauth_callbacks_controller_test.rb
|
466
|
-
- test/controllers/devise_token_auth/sessions_controller_test.rb
|
467
|
-
- test/controllers/devise_token_auth/passwords_controller_test.rb
|
468
|
-
- test/controllers/demo_user_controller_test.rb
|
469
|
-
- test/controllers/custom/custom_omniauth_callbacks_controller_test.rb
|
470
|
-
- test/controllers/custom/custom_sessions_controller_test.rb
|
471
|
-
- test/controllers/custom/custom_confirmations_controller_test.rb
|
472
|
-
- test/controllers/custom/custom_token_validations_controller_test.rb
|
473
|
-
- test/controllers/custom/custom_registrations_controller_test.rb
|
474
|
-
- test/controllers/custom/custom_passwords_controller_test.rb
|
475
|
-
- test/controllers/demo_group_controller_test.rb
|