authlogic 4.4.3 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authlogic.rb +4 -28
- data/lib/authlogic/acts_as_authentic/base.rb +3 -18
- data/lib/authlogic/acts_as_authentic/email.rb +3 -170
- data/lib/authlogic/acts_as_authentic/logged_in_status.rb +3 -1
- data/lib/authlogic/acts_as_authentic/login.rb +7 -174
- data/lib/authlogic/acts_as_authentic/magic_columns.rb +7 -4
- data/lib/authlogic/acts_as_authentic/password.rb +54 -253
- data/lib/authlogic/acts_as_authentic/perishable_token.rb +8 -5
- data/lib/authlogic/acts_as_authentic/persistence_token.rb +10 -4
- data/lib/authlogic/acts_as_authentic/queries/case_sensitivity.rb +53 -0
- data/lib/authlogic/acts_as_authentic/queries/find_with_case.rb +36 -20
- data/lib/authlogic/acts_as_authentic/session_maintenance.rb +8 -6
- data/lib/authlogic/acts_as_authentic/single_access_token.rb +10 -8
- data/lib/authlogic/config.rb +9 -1
- data/lib/authlogic/controller_adapters/abstract_adapter.rb +7 -4
- data/lib/authlogic/controller_adapters/rack_adapter.rb +2 -0
- data/lib/authlogic/controller_adapters/rails_adapter.rb +6 -29
- data/lib/authlogic/controller_adapters/sinatra_adapter.rb +6 -0
- data/lib/authlogic/cookie_credentials.rb +63 -0
- data/lib/authlogic/crypto_providers.rb +5 -20
- data/lib/authlogic/crypto_providers/bcrypt.rb +3 -3
- data/lib/authlogic/crypto_providers/md5.rb +3 -6
- data/lib/authlogic/crypto_providers/scrypt.rb +2 -0
- data/lib/authlogic/crypto_providers/sha1.rb +4 -6
- data/lib/authlogic/crypto_providers/sha256.rb +2 -0
- data/lib/authlogic/crypto_providers/sha512.rb +6 -5
- data/lib/authlogic/i18n.rb +3 -1
- data/lib/authlogic/i18n/translator.rb +3 -0
- data/lib/authlogic/random.rb +2 -0
- data/lib/authlogic/session/base.rb +2087 -39
- data/lib/authlogic/session/magic_column/assigns_last_request_at.rb +46 -0
- data/lib/authlogic/test_case.rb +4 -0
- data/lib/authlogic/test_case/mock_controller.rb +2 -0
- data/lib/authlogic/test_case/mock_cookie_jar.rb +7 -35
- data/lib/authlogic/test_case/mock_logger.rb +2 -0
- data/lib/authlogic/test_case/mock_request.rb +2 -0
- data/lib/authlogic/test_case/rails_request_adapter.rb +2 -0
- data/lib/authlogic/version.rb +2 -1
- metadata +136 -182
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -28
- data/.github/ISSUE_TEMPLATE/feature_proposal.md +0 -32
- data/.github/triage.md +0 -86
- data/.gitignore +0 -15
- data/.rubocop.yml +0 -133
- data/.rubocop_todo.yml +0 -74
- data/.travis.yml +0 -24
- data/CHANGELOG.md +0 -336
- data/CONTRIBUTING.md +0 -91
- data/Gemfile +0 -6
- data/LICENSE +0 -20
- data/README.md +0 -439
- data/Rakefile +0 -21
- data/UPGRADING.md +0 -22
- data/authlogic.gemspec +0 -40
- data/doc/use_normal_rails_validation.md +0 -82
- data/gemfiles/Gemfile.rails-4.2.x +0 -6
- data/gemfiles/Gemfile.rails-5.1.x +0 -6
- data/gemfiles/Gemfile.rails-5.2.x +0 -6
- data/lib/authlogic/acts_as_authentic/restful_authentication.rb +0 -106
- data/lib/authlogic/acts_as_authentic/validations_scope.rb +0 -35
- data/lib/authlogic/authenticates_many/association.rb +0 -50
- data/lib/authlogic/authenticates_many/base.rb +0 -81
- data/lib/authlogic/crypto_providers/aes256.rb +0 -71
- data/lib/authlogic/crypto_providers/wordpress.rb +0 -72
- data/lib/authlogic/regex.rb +0 -79
- data/lib/authlogic/session/activation.rb +0 -73
- data/lib/authlogic/session/active_record_trickery.rb +0 -65
- data/lib/authlogic/session/brute_force_protection.rb +0 -127
- data/lib/authlogic/session/callbacks.rb +0 -153
- data/lib/authlogic/session/cookies.rb +0 -329
- data/lib/authlogic/session/existence.rb +0 -103
- data/lib/authlogic/session/foundation.rb +0 -105
- data/lib/authlogic/session/http_auth.rb +0 -107
- data/lib/authlogic/session/id.rb +0 -53
- data/lib/authlogic/session/klass.rb +0 -73
- data/lib/authlogic/session/magic_columns.rb +0 -119
- data/lib/authlogic/session/magic_states.rb +0 -82
- data/lib/authlogic/session/params.rb +0 -130
- data/lib/authlogic/session/password.rb +0 -318
- data/lib/authlogic/session/perishable_token.rb +0 -24
- data/lib/authlogic/session/persistence.rb +0 -77
- data/lib/authlogic/session/priority_record.rb +0 -38
- data/lib/authlogic/session/scopes.rb +0 -138
- data/lib/authlogic/session/session.rb +0 -77
- data/lib/authlogic/session/timeout.rb +0 -103
- data/lib/authlogic/session/unauthorized_record.rb +0 -56
- data/lib/authlogic/session/validation.rb +0 -93
- data/test/acts_as_authentic_test/base_test.rb +0 -27
- data/test/acts_as_authentic_test/email_test.rb +0 -241
- data/test/acts_as_authentic_test/logged_in_status_test.rb +0 -64
- data/test/acts_as_authentic_test/login_test.rb +0 -153
- data/test/acts_as_authentic_test/magic_columns_test.rb +0 -29
- data/test/acts_as_authentic_test/password_test.rb +0 -263
- data/test/acts_as_authentic_test/perishable_token_test.rb +0 -98
- data/test/acts_as_authentic_test/persistence_token_test.rb +0 -62
- data/test/acts_as_authentic_test/restful_authentication_test.rb +0 -48
- data/test/acts_as_authentic_test/session_maintenance_test.rb +0 -150
- data/test/acts_as_authentic_test/single_access_test.rb +0 -46
- data/test/adapter_test.rb +0 -23
- data/test/authenticates_many_test.rb +0 -33
- data/test/config_test.rb +0 -38
- data/test/crypto_provider_test/aes256_test.rb +0 -16
- data/test/crypto_provider_test/bcrypt_test.rb +0 -16
- data/test/crypto_provider_test/scrypt_test.rb +0 -16
- data/test/crypto_provider_test/sha1_test.rb +0 -25
- data/test/crypto_provider_test/sha256_test.rb +0 -16
- data/test/crypto_provider_test/sha512_test.rb +0 -16
- data/test/crypto_provider_test/wordpress_test.rb +0 -26
- data/test/fixtures/companies.yml +0 -5
- data/test/fixtures/employees.yml +0 -17
- data/test/fixtures/projects.yml +0 -3
- data/test/fixtures/users.yml +0 -41
- data/test/i18n/lol.yml +0 -4
- data/test/i18n_test.rb +0 -35
- data/test/libs/affiliate.rb +0 -9
- data/test/libs/company.rb +0 -8
- data/test/libs/employee.rb +0 -9
- data/test/libs/employee_session.rb +0 -4
- data/test/libs/ldaper.rb +0 -5
- data/test/libs/project.rb +0 -5
- data/test/libs/user.rb +0 -9
- data/test/libs/user_session.rb +0 -27
- data/test/random_test.rb +0 -15
- data/test/session_test/activation_test.rb +0 -45
- data/test/session_test/active_record_trickery_test.rb +0 -78
- data/test/session_test/brute_force_protection_test.rb +0 -110
- data/test/session_test/callbacks_test.rb +0 -42
- data/test/session_test/cookies_test.rb +0 -242
- data/test/session_test/credentials_test.rb +0 -0
- data/test/session_test/existence_test.rb +0 -88
- data/test/session_test/foundation_test.rb +0 -24
- data/test/session_test/http_auth_test.rb +0 -60
- data/test/session_test/id_test.rb +0 -19
- data/test/session_test/klass_test.rb +0 -42
- data/test/session_test/magic_columns_test.rb +0 -62
- data/test/session_test/magic_states_test.rb +0 -60
- data/test/session_test/params_test.rb +0 -61
- data/test/session_test/password_test.rb +0 -107
- data/test/session_test/perishability_test.rb +0 -17
- data/test/session_test/persistence_test.rb +0 -35
- data/test/session_test/scopes_test.rb +0 -68
- data/test/session_test/session_test.rb +0 -80
- data/test/session_test/timeout_test.rb +0 -84
- data/test/session_test/unauthorized_record_test.rb +0 -15
- data/test/session_test/validation_test.rb +0 -25
- data/test/test_helper.rb +0 -272
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Authlogic
|
4
|
+
module Session
|
5
|
+
module MagicColumn
|
6
|
+
# Assigns the current time to the `last_request_at` attribute.
|
7
|
+
#
|
8
|
+
# 1. The `last_request_at` column must exist
|
9
|
+
# 2. Assignment can be disabled on a per-controller basis
|
10
|
+
# 3. Assignment will not happen more often than `last_request_at_threshold`
|
11
|
+
# seconds.
|
12
|
+
#
|
13
|
+
# - current_time - a `Time`
|
14
|
+
# - record - eg. a `User`
|
15
|
+
# - controller - an `Authlogic::ControllerAdapters::AbstractAdapter`
|
16
|
+
# - last_request_at_threshold - integer - seconds
|
17
|
+
#
|
18
|
+
# @api private
|
19
|
+
class AssignsLastRequestAt
|
20
|
+
def initialize(current_time, record, controller, last_request_at_threshold)
|
21
|
+
@current_time = current_time
|
22
|
+
@record = record
|
23
|
+
@controller = controller
|
24
|
+
@last_request_at_threshold = last_request_at_threshold
|
25
|
+
end
|
26
|
+
|
27
|
+
def assign
|
28
|
+
return unless assign?
|
29
|
+
@record.last_request_at = @current_time
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
# @api private
|
35
|
+
def assign?
|
36
|
+
@record &&
|
37
|
+
@record.class.column_names.include?("last_request_at") &&
|
38
|
+
@controller.last_request_update_allowed? && (
|
39
|
+
@record.last_request_at.blank? ||
|
40
|
+
@last_request_at_threshold.to_i.seconds.ago >= @record.last_request_at
|
41
|
+
)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/lib/authlogic/test_case.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require File.dirname(__FILE__) + "/test_case/rails_request_adapter"
|
2
4
|
require File.dirname(__FILE__) + "/test_case/mock_cookie_jar"
|
3
5
|
require File.dirname(__FILE__) + "/test_case/mock_controller"
|
4
6
|
require File.dirname(__FILE__) + "/test_case/mock_logger"
|
5
7
|
require File.dirname(__FILE__) + "/test_case/mock_request"
|
6
8
|
|
9
|
+
# :nodoc:
|
7
10
|
module Authlogic
|
8
11
|
# This module is a collection of methods and classes that help you easily test
|
9
12
|
# Authlogic. In fact, I use these same tools to test the internals of
|
@@ -204,6 +207,7 @@ module Authlogic
|
|
204
207
|
end
|
205
208
|
end
|
206
209
|
|
210
|
+
# TODO: Why are these lines inside the `Authlogic` module? Should be outside?
|
207
211
|
::Test::Unit::TestCase.send(:include, TestCase) if defined?(::Test::Unit::TestCase)
|
208
212
|
::MiniTest::Unit::TestCase.send(:include, TestCase) if defined?(::MiniTest::Unit::TestCase)
|
209
213
|
::MiniTest::Test.send(:include, TestCase) if defined?(::MiniTest::Test)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Authlogic
|
2
4
|
module TestCase
|
3
5
|
# A mock of `ActionDispatch::Cookies::CookieJar`.
|
@@ -21,18 +23,18 @@ module Authlogic
|
|
21
23
|
def signed
|
22
24
|
@signed ||= MockSignedCookieJar.new(self)
|
23
25
|
end
|
24
|
-
|
25
|
-
def encrypted
|
26
|
-
@encrypted ||= MockEncryptedCookieJar.new(self)
|
27
|
-
end
|
28
26
|
end
|
29
27
|
|
28
|
+
# A mock of `ActionDispatch::Cookies::SignedKeyRotatingCookieJar`
|
29
|
+
#
|
30
|
+
# > .. a jar that'll automatically generate a signed representation of
|
31
|
+
# > cookie value and verify it when reading from the cookie again.
|
32
|
+
# > actionpack/lib/action_dispatch/middleware/cookies.rb
|
30
33
|
class MockSignedCookieJar < MockCookieJar
|
31
34
|
attr_reader :parent_jar # helper for testing
|
32
35
|
|
33
36
|
def initialize(parent_jar)
|
34
37
|
@parent_jar = parent_jar
|
35
|
-
parent_jar.each { |k, v| self[k] = v }
|
36
38
|
end
|
37
39
|
|
38
40
|
def [](val)
|
@@ -49,35 +51,5 @@ module Authlogic
|
|
49
51
|
@parent_jar[key] = options
|
50
52
|
end
|
51
53
|
end
|
52
|
-
|
53
|
-
class MockEncryptedCookieJar < MockCookieJar
|
54
|
-
attr_reader :parent_jar # helper for testing
|
55
|
-
|
56
|
-
def initialize(parent_jar)
|
57
|
-
@parent_jar = parent_jar
|
58
|
-
parent_jar.each { |k, v| self[k] = v }
|
59
|
-
end
|
60
|
-
|
61
|
-
def [](val)
|
62
|
-
encrypted_message = @parent_jar[val]
|
63
|
-
if encrypted_message
|
64
|
-
self.class.decrypt(encrypted_message)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
def []=(key, options)
|
69
|
-
options[:value] = self.class.encrypt(options[:value])
|
70
|
-
@parent_jar[key] = options
|
71
|
-
end
|
72
|
-
|
73
|
-
# simple caesar cipher for testing
|
74
|
-
def self.encrypt(str)
|
75
|
-
str.unpack("U*").map(&:succ).pack("U*")
|
76
|
-
end
|
77
|
-
|
78
|
-
def self.decrypt(str)
|
79
|
-
str.unpack("U*").map(&:pred).pack("U*")
|
80
|
-
end
|
81
|
-
end
|
82
54
|
end
|
83
55
|
end
|
data/lib/authlogic/version.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require "rubygems"
|
4
4
|
|
5
|
+
# :nodoc:
|
5
6
|
module Authlogic
|
6
7
|
# Returns a `::Gem::Version`, the version number of the authlogic gem.
|
7
8
|
#
|
@@ -16,6 +17,6 @@ module Authlogic
|
|
16
17
|
#
|
17
18
|
# @api public
|
18
19
|
def self.gem_version
|
19
|
-
::Gem::Version.new("
|
20
|
+
::Gem::Version.new("5.0.4")
|
20
21
|
end
|
21
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authlogic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Johnson
|
@@ -10,48 +10,68 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-
|
13
|
+
date: 2019-09-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activemodel
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '5.2'
|
22
|
+
- - "<"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '6.1'
|
25
|
+
type: :runtime
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '5.2'
|
32
|
+
- - "<"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '6.1'
|
15
35
|
- !ruby/object:Gem::Dependency
|
16
36
|
name: activerecord
|
17
37
|
requirement: !ruby/object:Gem::Requirement
|
18
38
|
requirements:
|
19
39
|
- - ">="
|
20
40
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
41
|
+
version: '5.2'
|
22
42
|
- - "<"
|
23
43
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
44
|
+
version: '6.1'
|
25
45
|
type: :runtime
|
26
46
|
prerelease: false
|
27
47
|
version_requirements: !ruby/object:Gem::Requirement
|
28
48
|
requirements:
|
29
49
|
- - ">="
|
30
50
|
- !ruby/object:Gem::Version
|
31
|
-
version: '
|
51
|
+
version: '5.2'
|
32
52
|
- - "<"
|
33
53
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
54
|
+
version: '6.1'
|
35
55
|
- !ruby/object:Gem::Dependency
|
36
56
|
name: activesupport
|
37
57
|
requirement: !ruby/object:Gem::Requirement
|
38
58
|
requirements:
|
39
59
|
- - ">="
|
40
60
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
61
|
+
version: '5.2'
|
42
62
|
- - "<"
|
43
63
|
- !ruby/object:Gem::Version
|
44
|
-
version: '
|
64
|
+
version: '6.1'
|
45
65
|
type: :runtime
|
46
66
|
prerelease: false
|
47
67
|
version_requirements: !ruby/object:Gem::Requirement
|
48
68
|
requirements:
|
49
69
|
- - ">="
|
50
70
|
- !ruby/object:Gem::Version
|
51
|
-
version: '
|
71
|
+
version: '5.2'
|
52
72
|
- - "<"
|
53
73
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
74
|
+
version: '6.1'
|
55
75
|
- !ruby/object:Gem::Dependency
|
56
76
|
name: request_store
|
57
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,6 +134,20 @@ dependencies:
|
|
114
134
|
- - "~>"
|
115
135
|
- !ruby/object:Gem::Version
|
116
136
|
version: '10.0'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: coveralls
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: 0.8.22
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "~>"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: 0.8.22
|
117
151
|
- !ruby/object:Gem::Dependency
|
118
152
|
name: minitest-reporters
|
119
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,20 +162,104 @@ dependencies:
|
|
128
162
|
- - "~>"
|
129
163
|
- !ruby/object:Gem::Version
|
130
164
|
version: '1.3'
|
165
|
+
- !ruby/object:Gem::Dependency
|
166
|
+
name: mysql2
|
167
|
+
requirement: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - "~>"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: 0.5.2
|
172
|
+
type: :development
|
173
|
+
prerelease: false
|
174
|
+
version_requirements: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - "~>"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: 0.5.2
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: pg
|
181
|
+
requirement: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: 1.1.4
|
186
|
+
type: :development
|
187
|
+
prerelease: false
|
188
|
+
version_requirements: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - "~>"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 1.1.4
|
131
193
|
- !ruby/object:Gem::Dependency
|
132
194
|
name: rubocop
|
133
195
|
requirement: !ruby/object:Gem::Requirement
|
134
196
|
requirements:
|
135
197
|
- - "~>"
|
136
198
|
- !ruby/object:Gem::Version
|
137
|
-
version: 0.
|
199
|
+
version: 0.67.2
|
200
|
+
type: :development
|
201
|
+
prerelease: false
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - "~>"
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: 0.67.2
|
207
|
+
- !ruby/object:Gem::Dependency
|
208
|
+
name: rubocop-performance
|
209
|
+
requirement: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - "~>"
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '1.1'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - "~>"
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '1.1'
|
221
|
+
- !ruby/object:Gem::Dependency
|
222
|
+
name: simplecov
|
223
|
+
requirement: !ruby/object:Gem::Requirement
|
224
|
+
requirements:
|
225
|
+
- - "~>"
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: 0.16.1
|
228
|
+
type: :development
|
229
|
+
prerelease: false
|
230
|
+
version_requirements: !ruby/object:Gem::Requirement
|
231
|
+
requirements:
|
232
|
+
- - "~>"
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: 0.16.1
|
235
|
+
- !ruby/object:Gem::Dependency
|
236
|
+
name: simplecov-console
|
237
|
+
requirement: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - "~>"
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: 0.4.2
|
242
|
+
type: :development
|
243
|
+
prerelease: false
|
244
|
+
version_requirements: !ruby/object:Gem::Requirement
|
245
|
+
requirements:
|
246
|
+
- - "~>"
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
version: 0.4.2
|
249
|
+
- !ruby/object:Gem::Dependency
|
250
|
+
name: sqlite3
|
251
|
+
requirement: !ruby/object:Gem::Requirement
|
252
|
+
requirements:
|
253
|
+
- - "~>"
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
version: 1.3.13
|
138
256
|
type: :development
|
139
257
|
prerelease: false
|
140
258
|
version_requirements: !ruby/object:Gem::Requirement
|
141
259
|
requirements:
|
142
260
|
- - "~>"
|
143
261
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
262
|
+
version: 1.3.13
|
145
263
|
- !ruby/object:Gem::Dependency
|
146
264
|
name: timecop
|
147
265
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,25 +283,6 @@ executables: []
|
|
165
283
|
extensions: []
|
166
284
|
extra_rdoc_files: []
|
167
285
|
files:
|
168
|
-
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
169
|
-
- ".github/ISSUE_TEMPLATE/feature_proposal.md"
|
170
|
-
- ".github/triage.md"
|
171
|
-
- ".gitignore"
|
172
|
-
- ".rubocop.yml"
|
173
|
-
- ".rubocop_todo.yml"
|
174
|
-
- ".travis.yml"
|
175
|
-
- CHANGELOG.md
|
176
|
-
- CONTRIBUTING.md
|
177
|
-
- Gemfile
|
178
|
-
- LICENSE
|
179
|
-
- README.md
|
180
|
-
- Rakefile
|
181
|
-
- UPGRADING.md
|
182
|
-
- authlogic.gemspec
|
183
|
-
- doc/use_normal_rails_validation.md
|
184
|
-
- gemfiles/Gemfile.rails-4.2.x
|
185
|
-
- gemfiles/Gemfile.rails-5.1.x
|
186
|
-
- gemfiles/Gemfile.rails-5.2.x
|
187
286
|
- lib/authlogic.rb
|
188
287
|
- lib/authlogic/acts_as_authentic/base.rb
|
189
288
|
- lib/authlogic/acts_as_authentic/email.rb
|
@@ -193,54 +292,28 @@ files:
|
|
193
292
|
- lib/authlogic/acts_as_authentic/password.rb
|
194
293
|
- lib/authlogic/acts_as_authentic/perishable_token.rb
|
195
294
|
- lib/authlogic/acts_as_authentic/persistence_token.rb
|
295
|
+
- lib/authlogic/acts_as_authentic/queries/case_sensitivity.rb
|
196
296
|
- lib/authlogic/acts_as_authentic/queries/find_with_case.rb
|
197
|
-
- lib/authlogic/acts_as_authentic/restful_authentication.rb
|
198
297
|
- lib/authlogic/acts_as_authentic/session_maintenance.rb
|
199
298
|
- lib/authlogic/acts_as_authentic/single_access_token.rb
|
200
|
-
- lib/authlogic/acts_as_authentic/validations_scope.rb
|
201
|
-
- lib/authlogic/authenticates_many/association.rb
|
202
|
-
- lib/authlogic/authenticates_many/base.rb
|
203
299
|
- lib/authlogic/config.rb
|
204
300
|
- lib/authlogic/controller_adapters/abstract_adapter.rb
|
205
301
|
- lib/authlogic/controller_adapters/rack_adapter.rb
|
206
302
|
- lib/authlogic/controller_adapters/rails_adapter.rb
|
207
303
|
- lib/authlogic/controller_adapters/sinatra_adapter.rb
|
304
|
+
- lib/authlogic/cookie_credentials.rb
|
208
305
|
- lib/authlogic/crypto_providers.rb
|
209
|
-
- lib/authlogic/crypto_providers/aes256.rb
|
210
306
|
- lib/authlogic/crypto_providers/bcrypt.rb
|
211
307
|
- lib/authlogic/crypto_providers/md5.rb
|
212
308
|
- lib/authlogic/crypto_providers/scrypt.rb
|
213
309
|
- lib/authlogic/crypto_providers/sha1.rb
|
214
310
|
- lib/authlogic/crypto_providers/sha256.rb
|
215
311
|
- lib/authlogic/crypto_providers/sha512.rb
|
216
|
-
- lib/authlogic/crypto_providers/wordpress.rb
|
217
312
|
- lib/authlogic/i18n.rb
|
218
313
|
- lib/authlogic/i18n/translator.rb
|
219
314
|
- lib/authlogic/random.rb
|
220
|
-
- lib/authlogic/regex.rb
|
221
|
-
- lib/authlogic/session/activation.rb
|
222
|
-
- lib/authlogic/session/active_record_trickery.rb
|
223
315
|
- lib/authlogic/session/base.rb
|
224
|
-
- lib/authlogic/session/
|
225
|
-
- lib/authlogic/session/callbacks.rb
|
226
|
-
- lib/authlogic/session/cookies.rb
|
227
|
-
- lib/authlogic/session/existence.rb
|
228
|
-
- lib/authlogic/session/foundation.rb
|
229
|
-
- lib/authlogic/session/http_auth.rb
|
230
|
-
- lib/authlogic/session/id.rb
|
231
|
-
- lib/authlogic/session/klass.rb
|
232
|
-
- lib/authlogic/session/magic_columns.rb
|
233
|
-
- lib/authlogic/session/magic_states.rb
|
234
|
-
- lib/authlogic/session/params.rb
|
235
|
-
- lib/authlogic/session/password.rb
|
236
|
-
- lib/authlogic/session/perishable_token.rb
|
237
|
-
- lib/authlogic/session/persistence.rb
|
238
|
-
- lib/authlogic/session/priority_record.rb
|
239
|
-
- lib/authlogic/session/scopes.rb
|
240
|
-
- lib/authlogic/session/session.rb
|
241
|
-
- lib/authlogic/session/timeout.rb
|
242
|
-
- lib/authlogic/session/unauthorized_record.rb
|
243
|
-
- lib/authlogic/session/validation.rb
|
316
|
+
- lib/authlogic/session/magic_column/assigns_last_request_at.rb
|
244
317
|
- lib/authlogic/test_case.rb
|
245
318
|
- lib/authlogic/test_case/mock_controller.rb
|
246
319
|
- lib/authlogic/test_case/mock_cookie_jar.rb
|
@@ -248,65 +321,6 @@ files:
|
|
248
321
|
- lib/authlogic/test_case/mock_request.rb
|
249
322
|
- lib/authlogic/test_case/rails_request_adapter.rb
|
250
323
|
- lib/authlogic/version.rb
|
251
|
-
- test/acts_as_authentic_test/base_test.rb
|
252
|
-
- test/acts_as_authentic_test/email_test.rb
|
253
|
-
- test/acts_as_authentic_test/logged_in_status_test.rb
|
254
|
-
- test/acts_as_authentic_test/login_test.rb
|
255
|
-
- test/acts_as_authentic_test/magic_columns_test.rb
|
256
|
-
- test/acts_as_authentic_test/password_test.rb
|
257
|
-
- test/acts_as_authentic_test/perishable_token_test.rb
|
258
|
-
- test/acts_as_authentic_test/persistence_token_test.rb
|
259
|
-
- test/acts_as_authentic_test/restful_authentication_test.rb
|
260
|
-
- test/acts_as_authentic_test/session_maintenance_test.rb
|
261
|
-
- test/acts_as_authentic_test/single_access_test.rb
|
262
|
-
- test/adapter_test.rb
|
263
|
-
- test/authenticates_many_test.rb
|
264
|
-
- test/config_test.rb
|
265
|
-
- test/crypto_provider_test/aes256_test.rb
|
266
|
-
- test/crypto_provider_test/bcrypt_test.rb
|
267
|
-
- test/crypto_provider_test/scrypt_test.rb
|
268
|
-
- test/crypto_provider_test/sha1_test.rb
|
269
|
-
- test/crypto_provider_test/sha256_test.rb
|
270
|
-
- test/crypto_provider_test/sha512_test.rb
|
271
|
-
- test/crypto_provider_test/wordpress_test.rb
|
272
|
-
- test/fixtures/companies.yml
|
273
|
-
- test/fixtures/employees.yml
|
274
|
-
- test/fixtures/projects.yml
|
275
|
-
- test/fixtures/users.yml
|
276
|
-
- test/i18n/lol.yml
|
277
|
-
- test/i18n_test.rb
|
278
|
-
- test/libs/affiliate.rb
|
279
|
-
- test/libs/company.rb
|
280
|
-
- test/libs/employee.rb
|
281
|
-
- test/libs/employee_session.rb
|
282
|
-
- test/libs/ldaper.rb
|
283
|
-
- test/libs/project.rb
|
284
|
-
- test/libs/user.rb
|
285
|
-
- test/libs/user_session.rb
|
286
|
-
- test/random_test.rb
|
287
|
-
- test/session_test/activation_test.rb
|
288
|
-
- test/session_test/active_record_trickery_test.rb
|
289
|
-
- test/session_test/brute_force_protection_test.rb
|
290
|
-
- test/session_test/callbacks_test.rb
|
291
|
-
- test/session_test/cookies_test.rb
|
292
|
-
- test/session_test/credentials_test.rb
|
293
|
-
- test/session_test/existence_test.rb
|
294
|
-
- test/session_test/foundation_test.rb
|
295
|
-
- test/session_test/http_auth_test.rb
|
296
|
-
- test/session_test/id_test.rb
|
297
|
-
- test/session_test/klass_test.rb
|
298
|
-
- test/session_test/magic_columns_test.rb
|
299
|
-
- test/session_test/magic_states_test.rb
|
300
|
-
- test/session_test/params_test.rb
|
301
|
-
- test/session_test/password_test.rb
|
302
|
-
- test/session_test/perishability_test.rb
|
303
|
-
- test/session_test/persistence_test.rb
|
304
|
-
- test/session_test/scopes_test.rb
|
305
|
-
- test/session_test/session_test.rb
|
306
|
-
- test/session_test/timeout_test.rb
|
307
|
-
- test/session_test/unauthorized_record_test.rb
|
308
|
-
- test/session_test/validation_test.rb
|
309
|
-
- test/test_helper.rb
|
310
324
|
homepage: http://github.com/binarylogic/authlogic
|
311
325
|
licenses:
|
312
326
|
- MIT
|
@@ -326,68 +340,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
326
340
|
- !ruby/object:Gem::Version
|
327
341
|
version: '0'
|
328
342
|
requirements: []
|
329
|
-
|
330
|
-
rubygems_version: 2.7.6
|
343
|
+
rubygems_version: 3.0.3
|
331
344
|
signing_key:
|
332
345
|
specification_version: 4
|
333
|
-
summary:
|
334
|
-
test_files:
|
335
|
-
- test/acts_as_authentic_test/base_test.rb
|
336
|
-
- test/acts_as_authentic_test/email_test.rb
|
337
|
-
- test/acts_as_authentic_test/logged_in_status_test.rb
|
338
|
-
- test/acts_as_authentic_test/login_test.rb
|
339
|
-
- test/acts_as_authentic_test/magic_columns_test.rb
|
340
|
-
- test/acts_as_authentic_test/password_test.rb
|
341
|
-
- test/acts_as_authentic_test/perishable_token_test.rb
|
342
|
-
- test/acts_as_authentic_test/persistence_token_test.rb
|
343
|
-
- test/acts_as_authentic_test/restful_authentication_test.rb
|
344
|
-
- test/acts_as_authentic_test/session_maintenance_test.rb
|
345
|
-
- test/acts_as_authentic_test/single_access_test.rb
|
346
|
-
- test/adapter_test.rb
|
347
|
-
- test/authenticates_many_test.rb
|
348
|
-
- test/config_test.rb
|
349
|
-
- test/crypto_provider_test/aes256_test.rb
|
350
|
-
- test/crypto_provider_test/bcrypt_test.rb
|
351
|
-
- test/crypto_provider_test/scrypt_test.rb
|
352
|
-
- test/crypto_provider_test/sha1_test.rb
|
353
|
-
- test/crypto_provider_test/sha256_test.rb
|
354
|
-
- test/crypto_provider_test/sha512_test.rb
|
355
|
-
- test/crypto_provider_test/wordpress_test.rb
|
356
|
-
- test/fixtures/companies.yml
|
357
|
-
- test/fixtures/employees.yml
|
358
|
-
- test/fixtures/projects.yml
|
359
|
-
- test/fixtures/users.yml
|
360
|
-
- test/i18n/lol.yml
|
361
|
-
- test/i18n_test.rb
|
362
|
-
- test/libs/affiliate.rb
|
363
|
-
- test/libs/company.rb
|
364
|
-
- test/libs/employee.rb
|
365
|
-
- test/libs/employee_session.rb
|
366
|
-
- test/libs/ldaper.rb
|
367
|
-
- test/libs/project.rb
|
368
|
-
- test/libs/user.rb
|
369
|
-
- test/libs/user_session.rb
|
370
|
-
- test/random_test.rb
|
371
|
-
- test/session_test/activation_test.rb
|
372
|
-
- test/session_test/active_record_trickery_test.rb
|
373
|
-
- test/session_test/brute_force_protection_test.rb
|
374
|
-
- test/session_test/callbacks_test.rb
|
375
|
-
- test/session_test/cookies_test.rb
|
376
|
-
- test/session_test/credentials_test.rb
|
377
|
-
- test/session_test/existence_test.rb
|
378
|
-
- test/session_test/foundation_test.rb
|
379
|
-
- test/session_test/http_auth_test.rb
|
380
|
-
- test/session_test/id_test.rb
|
381
|
-
- test/session_test/klass_test.rb
|
382
|
-
- test/session_test/magic_columns_test.rb
|
383
|
-
- test/session_test/magic_states_test.rb
|
384
|
-
- test/session_test/params_test.rb
|
385
|
-
- test/session_test/password_test.rb
|
386
|
-
- test/session_test/perishability_test.rb
|
387
|
-
- test/session_test/persistence_test.rb
|
388
|
-
- test/session_test/scopes_test.rb
|
389
|
-
- test/session_test/session_test.rb
|
390
|
-
- test/session_test/timeout_test.rb
|
391
|
-
- test/session_test/unauthorized_record_test.rb
|
392
|
-
- test/session_test/validation_test.rb
|
393
|
-
- test/test_helper.rb
|
346
|
+
summary: An unobtrusive ruby authentication library based on ActiveRecord.
|
347
|
+
test_files: []
|