authlogic 4.4.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/lib/authlogic/acts_as_authentic/base.rb +3 -18
  3. data/lib/authlogic/acts_as_authentic/email.rb +3 -170
  4. data/lib/authlogic/acts_as_authentic/logged_in_status.rb +3 -1
  5. data/lib/authlogic/acts_as_authentic/login.rb +7 -174
  6. data/lib/authlogic/acts_as_authentic/magic_columns.rb +7 -4
  7. data/lib/authlogic/acts_as_authentic/password.rb +54 -253
  8. data/lib/authlogic/acts_as_authentic/perishable_token.rb +7 -5
  9. data/lib/authlogic/acts_as_authentic/persistence_token.rb +9 -4
  10. data/lib/authlogic/acts_as_authentic/queries/case_sensitivity.rb +53 -0
  11. data/lib/authlogic/acts_as_authentic/queries/find_with_case.rb +17 -22
  12. data/lib/authlogic/acts_as_authentic/session_maintenance.rb +8 -6
  13. data/lib/authlogic/acts_as_authentic/single_access_token.rb +9 -8
  14. data/lib/authlogic/config.rb +9 -1
  15. data/lib/authlogic/controller_adapters/abstract_adapter.rb +7 -4
  16. data/lib/authlogic/controller_adapters/rack_adapter.rb +2 -0
  17. data/lib/authlogic/controller_adapters/rails_adapter.rb +17 -14
  18. data/lib/authlogic/controller_adapters/sinatra_adapter.rb +6 -0
  19. data/lib/authlogic/crypto_providers/bcrypt.rb +3 -3
  20. data/lib/authlogic/crypto_providers/md5.rb +3 -6
  21. data/lib/authlogic/crypto_providers/scrypt.rb +2 -0
  22. data/lib/authlogic/crypto_providers/sha1.rb +4 -6
  23. data/lib/authlogic/crypto_providers/sha256.rb +2 -0
  24. data/lib/authlogic/crypto_providers/sha512.rb +6 -5
  25. data/lib/authlogic/crypto_providers.rb +5 -20
  26. data/lib/authlogic/i18n/translator.rb +3 -0
  27. data/lib/authlogic/i18n.rb +3 -1
  28. data/lib/authlogic/random.rb +2 -0
  29. data/lib/authlogic/session/base.rb +2089 -39
  30. data/lib/authlogic/session/magic_column/assigns_last_request_at.rb +46 -0
  31. data/lib/authlogic/test_case/mock_controller.rb +2 -0
  32. data/lib/authlogic/test_case/mock_cookie_jar.rb +7 -0
  33. data/lib/authlogic/test_case/mock_logger.rb +2 -0
  34. data/lib/authlogic/test_case/mock_request.rb +2 -0
  35. data/lib/authlogic/test_case/rails_request_adapter.rb +2 -0
  36. data/lib/authlogic/test_case.rb +4 -0
  37. data/lib/authlogic/version.rb +2 -1
  38. data/lib/authlogic.rb +3 -28
  39. metadata +36 -180
  40. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -28
  41. data/.github/ISSUE_TEMPLATE/feature_proposal.md +0 -32
  42. data/.github/triage.md +0 -86
  43. data/.gitignore +0 -15
  44. data/.rubocop.yml +0 -133
  45. data/.rubocop_todo.yml +0 -74
  46. data/.travis.yml +0 -24
  47. data/CHANGELOG.md +0 -326
  48. data/CONTRIBUTING.md +0 -91
  49. data/Gemfile +0 -6
  50. data/LICENSE +0 -20
  51. data/README.md +0 -439
  52. data/Rakefile +0 -21
  53. data/UPGRADING.md +0 -22
  54. data/authlogic.gemspec +0 -40
  55. data/doc/use_normal_rails_validation.md +0 -82
  56. data/gemfiles/Gemfile.rails-4.2.x +0 -6
  57. data/gemfiles/Gemfile.rails-5.1.x +0 -6
  58. data/gemfiles/Gemfile.rails-5.2.x +0 -6
  59. data/lib/authlogic/acts_as_authentic/restful_authentication.rb +0 -106
  60. data/lib/authlogic/acts_as_authentic/validations_scope.rb +0 -35
  61. data/lib/authlogic/authenticates_many/association.rb +0 -50
  62. data/lib/authlogic/authenticates_many/base.rb +0 -81
  63. data/lib/authlogic/crypto_providers/aes256.rb +0 -71
  64. data/lib/authlogic/crypto_providers/wordpress.rb +0 -72
  65. data/lib/authlogic/regex.rb +0 -79
  66. data/lib/authlogic/session/activation.rb +0 -73
  67. data/lib/authlogic/session/active_record_trickery.rb +0 -65
  68. data/lib/authlogic/session/brute_force_protection.rb +0 -127
  69. data/lib/authlogic/session/callbacks.rb +0 -153
  70. data/lib/authlogic/session/cookies.rb +0 -296
  71. data/lib/authlogic/session/existence.rb +0 -103
  72. data/lib/authlogic/session/foundation.rb +0 -105
  73. data/lib/authlogic/session/http_auth.rb +0 -107
  74. data/lib/authlogic/session/id.rb +0 -53
  75. data/lib/authlogic/session/klass.rb +0 -73
  76. data/lib/authlogic/session/magic_columns.rb +0 -119
  77. data/lib/authlogic/session/magic_states.rb +0 -82
  78. data/lib/authlogic/session/params.rb +0 -130
  79. data/lib/authlogic/session/password.rb +0 -318
  80. data/lib/authlogic/session/perishable_token.rb +0 -24
  81. data/lib/authlogic/session/persistence.rb +0 -77
  82. data/lib/authlogic/session/priority_record.rb +0 -38
  83. data/lib/authlogic/session/scopes.rb +0 -138
  84. data/lib/authlogic/session/session.rb +0 -77
  85. data/lib/authlogic/session/timeout.rb +0 -103
  86. data/lib/authlogic/session/unauthorized_record.rb +0 -56
  87. data/lib/authlogic/session/validation.rb +0 -93
  88. data/test/acts_as_authentic_test/base_test.rb +0 -27
  89. data/test/acts_as_authentic_test/email_test.rb +0 -241
  90. data/test/acts_as_authentic_test/logged_in_status_test.rb +0 -64
  91. data/test/acts_as_authentic_test/login_test.rb +0 -153
  92. data/test/acts_as_authentic_test/magic_columns_test.rb +0 -29
  93. data/test/acts_as_authentic_test/password_test.rb +0 -263
  94. data/test/acts_as_authentic_test/perishable_token_test.rb +0 -98
  95. data/test/acts_as_authentic_test/persistence_token_test.rb +0 -62
  96. data/test/acts_as_authentic_test/restful_authentication_test.rb +0 -48
  97. data/test/acts_as_authentic_test/session_maintenance_test.rb +0 -150
  98. data/test/acts_as_authentic_test/single_access_test.rb +0 -46
  99. data/test/adapter_test.rb +0 -23
  100. data/test/authenticates_many_test.rb +0 -33
  101. data/test/config_test.rb +0 -38
  102. data/test/crypto_provider_test/aes256_test.rb +0 -16
  103. data/test/crypto_provider_test/bcrypt_test.rb +0 -16
  104. data/test/crypto_provider_test/scrypt_test.rb +0 -16
  105. data/test/crypto_provider_test/sha1_test.rb +0 -25
  106. data/test/crypto_provider_test/sha256_test.rb +0 -16
  107. data/test/crypto_provider_test/sha512_test.rb +0 -16
  108. data/test/crypto_provider_test/wordpress_test.rb +0 -26
  109. data/test/fixtures/companies.yml +0 -5
  110. data/test/fixtures/employees.yml +0 -17
  111. data/test/fixtures/projects.yml +0 -3
  112. data/test/fixtures/users.yml +0 -41
  113. data/test/i18n/lol.yml +0 -4
  114. data/test/i18n_test.rb +0 -35
  115. data/test/libs/affiliate.rb +0 -9
  116. data/test/libs/company.rb +0 -8
  117. data/test/libs/employee.rb +0 -9
  118. data/test/libs/employee_session.rb +0 -4
  119. data/test/libs/ldaper.rb +0 -5
  120. data/test/libs/project.rb +0 -5
  121. data/test/libs/user.rb +0 -9
  122. data/test/libs/user_session.rb +0 -27
  123. data/test/random_test.rb +0 -15
  124. data/test/session_test/activation_test.rb +0 -45
  125. data/test/session_test/active_record_trickery_test.rb +0 -78
  126. data/test/session_test/brute_force_protection_test.rb +0 -110
  127. data/test/session_test/callbacks_test.rb +0 -42
  128. data/test/session_test/cookies_test.rb +0 -226
  129. data/test/session_test/credentials_test.rb +0 -0
  130. data/test/session_test/existence_test.rb +0 -88
  131. data/test/session_test/foundation_test.rb +0 -24
  132. data/test/session_test/http_auth_test.rb +0 -60
  133. data/test/session_test/id_test.rb +0 -19
  134. data/test/session_test/klass_test.rb +0 -42
  135. data/test/session_test/magic_columns_test.rb +0 -62
  136. data/test/session_test/magic_states_test.rb +0 -60
  137. data/test/session_test/params_test.rb +0 -61
  138. data/test/session_test/password_test.rb +0 -107
  139. data/test/session_test/perishability_test.rb +0 -17
  140. data/test/session_test/persistence_test.rb +0 -35
  141. data/test/session_test/scopes_test.rb +0 -68
  142. data/test/session_test/session_test.rb +0 -80
  143. data/test/session_test/timeout_test.rb +0 -84
  144. data/test/session_test/unauthorized_record_test.rb +0 -15
  145. data/test/session_test/validation_test.rb +0 -25
  146. 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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Authlogic
2
4
  module TestCase
3
5
  # Basically acts like a controller but doesn't do anything. Authlogic can interact
@@ -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`.
@@ -23,6 +25,11 @@ module Authlogic
23
25
  end
24
26
  end
25
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
26
33
  class MockSignedCookieJar < MockCookieJar
27
34
  attr_reader :parent_jar # helper for testing
28
35
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Authlogic
2
4
  module TestCase
3
5
  # Simple class to replace real loggers, so that we can raise any errors being logged.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Authlogic
2
4
  module TestCase
3
5
  class MockRequest # :nodoc:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Authlogic
2
4
  module TestCase
3
5
  # Adapts authlogic to work with the @request object when testing. This way Authlogic
@@ -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)
@@ -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("4.4.2")
20
+ ::Gem::Version.new("5.0.0")
20
21
  end
21
22
  end
data/lib/authlogic.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Authlogic uses ActiveSupport's core extensions like `strip_heredoc` and
2
4
  # `squish`. ActiveRecord does not `require` these exensions, so we must.
3
5
  #
@@ -13,16 +15,12 @@ path = File.dirname(__FILE__) + "/authlogic/"
13
15
  [
14
16
  "i18n",
15
17
  "random",
16
- "regex",
17
18
  "config",
18
19
 
19
20
  "controller_adapters/abstract_adapter",
20
21
 
21
22
  "crypto_providers",
22
23
 
23
- "authenticates_many/base",
24
- "authenticates_many/association",
25
-
26
24
  "acts_as_authentic/email",
27
25
  "acts_as_authentic/logged_in_status",
28
26
  "acts_as_authentic/login",
@@ -30,34 +28,11 @@ path = File.dirname(__FILE__) + "/authlogic/"
30
28
  "acts_as_authentic/password",
31
29
  "acts_as_authentic/perishable_token",
32
30
  "acts_as_authentic/persistence_token",
33
- "acts_as_authentic/restful_authentication",
34
31
  "acts_as_authentic/session_maintenance",
35
32
  "acts_as_authentic/single_access_token",
36
- "acts_as_authentic/validations_scope",
37
33
  "acts_as_authentic/base",
38
34
 
39
- "session/activation",
40
- "session/active_record_trickery",
41
- "session/brute_force_protection",
42
- "session/callbacks",
43
- "session/cookies",
44
- "session/existence",
45
- "session/foundation",
46
- "session/http_auth",
47
- "session/id",
48
- "session/klass",
49
- "session/magic_columns",
50
- "session/magic_states",
51
- "session/params",
52
- "session/password",
53
- "session/perishable_token",
54
- "session/persistence",
55
- "session/priority_record",
56
- "session/scopes",
57
- "session/session",
58
- "session/timeout",
59
- "session/unauthorized_record",
60
- "session/validation",
35
+ "session/magic_column/assigns_last_request_at",
61
36
  "session/base"
62
37
  ].each do |library|
63
38
  require path + library
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.4.2
4
+ version: 5.0.0
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: 2018-09-23 00:00:00.000000000 Z
13
+ date: 2019-01-04 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: '4.2'
41
+ version: '5.2'
22
42
  - - "<"
23
43
  - !ruby/object:Gem::Version
24
- version: '5.3'
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: '4.2'
51
+ version: '5.2'
32
52
  - - "<"
33
53
  - !ruby/object:Gem::Version
34
- version: '5.3'
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: '4.2'
61
+ version: '5.2'
42
62
  - - "<"
43
63
  - !ruby/object:Gem::Version
44
- version: '5.3'
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: '4.2'
71
+ version: '5.2'
52
72
  - - "<"
53
73
  - !ruby/object:Gem::Version
54
- version: '5.3'
74
+ version: '6.1'
55
75
  - !ruby/object:Gem::Dependency
56
76
  name: request_store
57
77
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +154,14 @@ dependencies:
134
154
  requirements:
135
155
  - - "~>"
136
156
  - !ruby/object:Gem::Version
137
- version: 0.58.1
157
+ version: 0.62.0
138
158
  type: :development
139
159
  prerelease: false
140
160
  version_requirements: !ruby/object:Gem::Requirement
141
161
  requirements:
142
162
  - - "~>"
143
163
  - !ruby/object:Gem::Version
144
- version: 0.58.1
164
+ version: 0.62.0
145
165
  - !ruby/object:Gem::Dependency
146
166
  name: timecop
147
167
  requirement: !ruby/object:Gem::Requirement
@@ -165,25 +185,6 @@ executables: []
165
185
  extensions: []
166
186
  extra_rdoc_files: []
167
187
  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
188
  - lib/authlogic.rb
188
189
  - lib/authlogic/acts_as_authentic/base.rb
189
190
  - lib/authlogic/acts_as_authentic/email.rb
@@ -193,54 +194,27 @@ files:
193
194
  - lib/authlogic/acts_as_authentic/password.rb
194
195
  - lib/authlogic/acts_as_authentic/perishable_token.rb
195
196
  - lib/authlogic/acts_as_authentic/persistence_token.rb
197
+ - lib/authlogic/acts_as_authentic/queries/case_sensitivity.rb
196
198
  - lib/authlogic/acts_as_authentic/queries/find_with_case.rb
197
- - lib/authlogic/acts_as_authentic/restful_authentication.rb
198
199
  - lib/authlogic/acts_as_authentic/session_maintenance.rb
199
200
  - 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
201
  - lib/authlogic/config.rb
204
202
  - lib/authlogic/controller_adapters/abstract_adapter.rb
205
203
  - lib/authlogic/controller_adapters/rack_adapter.rb
206
204
  - lib/authlogic/controller_adapters/rails_adapter.rb
207
205
  - lib/authlogic/controller_adapters/sinatra_adapter.rb
208
206
  - lib/authlogic/crypto_providers.rb
209
- - lib/authlogic/crypto_providers/aes256.rb
210
207
  - lib/authlogic/crypto_providers/bcrypt.rb
211
208
  - lib/authlogic/crypto_providers/md5.rb
212
209
  - lib/authlogic/crypto_providers/scrypt.rb
213
210
  - lib/authlogic/crypto_providers/sha1.rb
214
211
  - lib/authlogic/crypto_providers/sha256.rb
215
212
  - lib/authlogic/crypto_providers/sha512.rb
216
- - lib/authlogic/crypto_providers/wordpress.rb
217
213
  - lib/authlogic/i18n.rb
218
214
  - lib/authlogic/i18n/translator.rb
219
215
  - lib/authlogic/random.rb
220
- - lib/authlogic/regex.rb
221
- - lib/authlogic/session/activation.rb
222
- - lib/authlogic/session/active_record_trickery.rb
223
216
  - lib/authlogic/session/base.rb
224
- - lib/authlogic/session/brute_force_protection.rb
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
217
+ - lib/authlogic/session/magic_column/assigns_last_request_at.rb
244
218
  - lib/authlogic/test_case.rb
245
219
  - lib/authlogic/test_case/mock_controller.rb
246
220
  - lib/authlogic/test_case/mock_cookie_jar.rb
@@ -248,65 +222,6 @@ files:
248
222
  - lib/authlogic/test_case/mock_request.rb
249
223
  - lib/authlogic/test_case/rails_request_adapter.rb
250
224
  - 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
225
  homepage: http://github.com/binarylogic/authlogic
311
226
  licenses:
312
227
  - MIT
@@ -330,64 +245,5 @@ rubyforge_project:
330
245
  rubygems_version: 2.5.2.3
331
246
  signing_key:
332
247
  specification_version: 4
333
- summary: A clean, simple, and unobtrusive ruby authentication solution.
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
248
+ summary: An unobtrusive ruby authentication library based on ActiveRecord.
249
+ test_files: []
@@ -1,28 +0,0 @@
1
- ---
2
- name: I want to fix a bug, but need some help
3
- about: >
4
- If the bug is easy to reproduce, we will help. However, you must fix the bug,
5
- in a reasonable amount of time, or your issue will be closed. See
6
- CONTRIBUTING.md
7
-
8
- ---
9
-
10
- - [ ] This is not a usage question.
11
- - Our volunteers' time is limited, so please ask usage questions on
12
- [StackOverflow](http://stackoverflow.com/questions/tagged/authlogic).
13
- - [ ] This is not a security issue.
14
- - Do not disclose security issues in public. See our [contributing
15
- guide](https://github.com/binarylogic/authlogic/blob/master/CONTRIBUTING.md)
16
- for instructions.
17
- - [ ] This is a reproducible bug, and I am committed to fixing it in
18
- a reasonable amount of time.
19
- - [ ] If I cannot fix this bug in a reasonable amount of time, I understand
20
- this issue will be closed.
21
-
22
- # Expected Behavior
23
-
24
- Describe.
25
-
26
- # Actual Behavior
27
-
28
- Describe.
@@ -1,32 +0,0 @@
1
- ---
2
- name: Feature Proposal
3
- about: >
4
- Propose something that you would like to build. We'll help, but you must build
5
- it yourself, in a reasonable amount of time, or your issue will be closed. See
6
- CONTRIBUTING.md
7
-
8
- ---
9
-
10
- - [ ] This is not a usage question.
11
- - Our volunteers' time is limited, so please ask usage questions on
12
- [StackOverflow](http://stackoverflow.com/questions/tagged/authlogic).
13
- - [ ] This is not a security issue.
14
- - Do not disclose security issues in public. See our [contributing
15
- guide](https://github.com/binarylogic/authlogic/blob/master/CONTRIBUTING.md)
16
- for instructions.
17
- - [ ] I am committed to implementing this feature in a reasonable amount of time.
18
- - [ ] If I cannot implement this feature in a reasonable amount of time, I
19
- understand this issue will be closed.
20
-
21
- # Current Behavior
22
-
23
- Describe.
24
-
25
- # Proposed Behavior
26
-
27
- Describe.
28
-
29
- # Proposed Solution
30
-
31
- It's OK if you don't have a solution, we can help with that. But, whatever
32
- solution we decide on, you must build yourself, in a reasonable amount of time.
data/.github/triage.md DELETED
@@ -1,86 +0,0 @@
1
- # Triage
2
-
3
- Common responses to issues.
4
-
5
- ## Usage question we were able to answer
6
-
7
- ```
8
- If that doesn't answer your question, please ask a new question
9
- on [stackoverflow][1]. Unfortunatley, we just don't have enough volunteers to
10
- handle usage questions on github.
11
-
12
- Also, please check the [reference documentation][2]. You might find something
13
- there that's not in the readme.
14
-
15
- Thanks!
16
-
17
- [1]: http://stackoverflow.com/questions/tagged/authlogic
18
- [2]: https://github.com/binarylogic/authlogic#1c-reference-documentation
19
- ```
20
-
21
- ## Old issue, generic
22
-
23
- ```
24
- Hello, I'm going through old authlogic issues and seeing what to do with them.
25
- Skimming through this, it's unclear if it's a usage question, a feature
26
- suggestion, or a bug report.
27
-
28
- If this is a bug report, and you can still reproduce this issue with a clean
29
- install of the latest version of authlogic and rails (currently 3.6.0 and 5.1.4
30
- respectively), please create a git repo with a sample app that reproduces the
31
- problem, and open a new issue.
32
-
33
- If this is a feature suggestion, it's still relevant, and you are committed to
34
- implementing it, please open a new issue and we can discuss your implementation
35
- plan.
36
-
37
- If this is a usage question, please ask it on [stackoverflow][1]. Unfortunatley,
38
- we just don't have enough volunteers to handle usage questions on github. Also,
39
- please check the [reference documentation][2]. You might find something there
40
- that's not in the readme.
41
-
42
- Thanks!
43
-
44
- [1]: http://stackoverflow.com/questions/tagged/authlogic
45
- [2]: https://github.com/binarylogic/authlogic#1c-reference-documentation
46
- ```
47
-
48
- ## Old issue, usage question / feature suggestion
49
-
50
- ```
51
- Hello, I'm going through old authlogic issues and seeing what to do with them.
52
- This one looks a bit like a usage question and a bit like a feature suggestion.
53
-
54
- If this is a feature suggestion, it's still relevant, and you are committed to
55
- implementing it, please open a new issue and we can discuss your implementation
56
- plan.
57
-
58
- If this is a usage question, please ask it on [stackoverflow][1]. Unfortunatley,
59
- we just don't have enough volunteers to handle usage questions on github. Also,
60
- please check the [reference documentation][2]. You might find something there
61
- that's not in the readme.
62
-
63
- Thanks!
64
-
65
- [1]: http://stackoverflow.com/questions/tagged/authlogic
66
- [2]: https://github.com/binarylogic/authlogic#1c-reference-documentation
67
- ```
68
-
69
- ## Old issue, bug report
70
-
71
- ```
72
- Hello, I'm going through old authlogic issues and seeing what to do with them.
73
- This one looks like a bug report.
74
-
75
- If you can still reproduce this issue with a clean install of the latest version
76
- of authlogic and rails, please create a git repo with a sample app that
77
- reproduces the problem, and open a new issue.
78
-
79
- If this was more of a usage question than a bug report, please ask your question
80
- on [stackoverflow][1]. Unfortunatley, we just don't have enough volunteers to
81
- handle usage questions on github.
82
-
83
- Thanks!
84
-
85
- [1]: http://stackoverflow.com/questions/tagged/authlogic
86
- ```
data/.gitignore DELETED
@@ -1,15 +0,0 @@
1
- .DS_Store
2
- .swp
3
- *.gem
4
- *.log
5
- *.sqlite3
6
- pkg/*
7
- coverage/*
8
- benchmarks/*
9
- .rvmrc
10
- gemfiles/Gemfile*.lock
11
- .bundle
12
- Gemfile.lock
13
- .ruby-gemset
14
- .ruby-version
15
- .byebug_history