authlogic 4.5.0 → 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 +5 -5
  2. data/lib/authlogic.rb +3 -28
  3. data/lib/authlogic/acts_as_authentic/base.rb +3 -18
  4. data/lib/authlogic/acts_as_authentic/email.rb +3 -170
  5. data/lib/authlogic/acts_as_authentic/logged_in_status.rb +3 -1
  6. data/lib/authlogic/acts_as_authentic/login.rb +7 -174
  7. data/lib/authlogic/acts_as_authentic/magic_columns.rb +7 -4
  8. data/lib/authlogic/acts_as_authentic/password.rb +54 -253
  9. data/lib/authlogic/acts_as_authentic/perishable_token.rb +7 -5
  10. data/lib/authlogic/acts_as_authentic/persistence_token.rb +9 -4
  11. data/lib/authlogic/acts_as_authentic/queries/case_sensitivity.rb +53 -0
  12. data/lib/authlogic/acts_as_authentic/queries/find_with_case.rb +17 -22
  13. data/lib/authlogic/acts_as_authentic/session_maintenance.rb +8 -6
  14. data/lib/authlogic/acts_as_authentic/single_access_token.rb +9 -8
  15. data/lib/authlogic/config.rb +9 -1
  16. data/lib/authlogic/controller_adapters/abstract_adapter.rb +7 -4
  17. data/lib/authlogic/controller_adapters/rack_adapter.rb +2 -0
  18. data/lib/authlogic/controller_adapters/rails_adapter.rb +17 -14
  19. data/lib/authlogic/controller_adapters/sinatra_adapter.rb +6 -0
  20. data/lib/authlogic/crypto_providers.rb +5 -20
  21. data/lib/authlogic/crypto_providers/bcrypt.rb +3 -3
  22. data/lib/authlogic/crypto_providers/md5.rb +3 -6
  23. data/lib/authlogic/crypto_providers/scrypt.rb +2 -0
  24. data/lib/authlogic/crypto_providers/sha1.rb +4 -6
  25. data/lib/authlogic/crypto_providers/sha256.rb +2 -0
  26. data/lib/authlogic/crypto_providers/sha512.rb +6 -5
  27. data/lib/authlogic/i18n.rb +3 -1
  28. data/lib/authlogic/i18n/translator.rb +3 -0
  29. data/lib/authlogic/random.rb +2 -0
  30. data/lib/authlogic/session/base.rb +2089 -39
  31. data/lib/authlogic/session/magic_column/assigns_last_request_at.rb +46 -0
  32. data/lib/authlogic/test_case.rb +4 -0
  33. data/lib/authlogic/test_case/mock_controller.rb +2 -0
  34. data/lib/authlogic/test_case/mock_cookie_jar.rb +7 -35
  35. data/lib/authlogic/test_case/mock_logger.rb +2 -0
  36. data/lib/authlogic/test_case/mock_request.rb +2 -0
  37. data/lib/authlogic/test_case/rails_request_adapter.rb +2 -0
  38. data/lib/authlogic/version.rb +2 -1
  39. metadata +38 -181
  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 -348
  48. data/CONTRIBUTING.md +0 -91
  49. data/Gemfile +0 -6
  50. data/LICENSE +0 -20
  51. data/README.md +0 -448
  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 -329
  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 -244
  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
@@ -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.
@@ -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
@@ -1,133 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- AllCops:
4
- Exclude:
5
- # TravisCI runs `bundle install --path=${BUNDLE_PATH:-vendor/bundle}`
6
- # causing our bundle to be installed in `gemfiles/vendor/bundle`.
7
- # Regardless, we have no interest in linting files in our bundle :D
8
- - gemfiles/vendor/bundle/**/*
9
- # Specify lowest supported ruby version. If we committed our .ruby-version
10
- # file, we wouldn't have to specify this (https://bit.ly/2vNTsue), but we
11
- # don't commit that file because that would interfere with testing multiple
12
- # rubies on CI.
13
- TargetRubyVersion: 2.3
14
-
15
- # Please use normal indentation when aligning parameters.
16
- #
17
- # Good:
18
- #
19
- # method_call(
20
- # a,
21
- # b
22
- # )
23
- #
24
- # method_call(a,
25
- # b
26
- # )
27
- #
28
- # Bad:
29
- #
30
- # method_call(a,
31
- # b)
32
- #
33
- # The latter is harder to maintain and uses too much horizontal space.
34
- Layout/AlignParameters:
35
- EnforcedStyle: with_fixed_indentation
36
-
37
- Layout/MultilineMethodCallIndentation:
38
- EnforcedStyle: indented
39
-
40
- Layout/MultilineOperationIndentation:
41
- EnforcedStyle: indented
42
-
43
- Metrics/AbcSize:
44
- Exclude:
45
- # crypto_providers/wordpress is deprecated so we will not attempt to
46
- # improve its quality.
47
- - lib/authlogic/crypto_providers/wordpress.rb
48
- # In an ideal world tests would be held to the same ABC metric as production
49
- # code. In practice, time spent doing so is not nearly as valuable as
50
- # spending the same time improving production code.
51
- - test/**/*
52
-
53
- # Questionable value compared to metrics like AbcSize or CyclomaticComplexity.
54
- Metrics/BlockLength:
55
- Enabled: false
56
-
57
- # Questionable value compared to metrics like AbcSize or CyclomaticComplexity.
58
- Metrics/ClassLength:
59
- Enabled: false
60
-
61
- Metrics/CyclomaticComplexity:
62
- Exclude:
63
- # crypto_providers/wordpress is deprecated so we will not attempt to
64
- # improve its quality.
65
- - lib/authlogic/crypto_providers/wordpress.rb
66
-
67
- # Aim for 80, but 100 is OK.
68
- Metrics/LineLength:
69
- Max: 100
70
-
71
- # Questionable value compared to metrics like AbcSize or CyclomaticComplexity.
72
- Metrics/MethodLength:
73
- Enabled: false
74
-
75
- # Questionable value compared to metrics like AbcSize or CyclomaticComplexity.
76
- Metrics/ModuleLength:
77
- Enabled: false
78
-
79
- # Sometimes prefixing a method name with get_ or set_ is a reasonable choice.
80
- Naming/AccessorMethodName:
81
- Enabled: false
82
-
83
- # Having a consistent delimiter, like EOS, improves reading speed. The delimiter
84
- # is syntactic noise, just like a quotation mark, and inconsistent naming would
85
- # hurt reading speed, just as inconsistent quoting would.
86
- Naming/HeredocDelimiterNaming:
87
- Enabled: false
88
-
89
- # Avoid single-line method definitions.
90
- Style/EmptyMethod:
91
- EnforcedStyle: expanded
92
-
93
- # Avoid annotated tokens except in desperately complicated format strings.
94
- # In 99% of format strings they actually make it less readable.
95
- Style/FormatStringToken:
96
- Enabled: false
97
-
98
- # Too subtle to lint. Guard clauses are great, use them if they help.
99
- Style/GuardClause:
100
- Enabled: false
101
-
102
- # Too subtle to lint. A multi-line conditional may improve readability, even if
103
- # a postfix conditional would satisfy `Metrics/LineLength`.
104
- Style/IfUnlessModifier:
105
- Enabled: false
106
-
107
- # Too subtle to lint. Use semantic style, but prefer `}.x` over `end.x`.
108
- Style/BlockDelimiters:
109
- Enabled: false
110
-
111
- # Use the nested style because it is safer. It is easier to make mistakes with
112
- # the compact style.
113
- Style/ClassAndModuleChildren:
114
- EnforcedStyle: nested
115
-
116
- # Both `module_function` and `extend_self` are legitimate. Most importantly,
117
- # they are different (http://bit.ly/2hSQAGm)
118
- Style/ModuleFunction:
119
- Enabled: false
120
-
121
- # The decision of when to use slashes `/foo/` or percent-r `%r{foo}` is too
122
- # subtle to lint. Use whichever requires fewer backslash escapes.
123
- Style/RegexpLiteral:
124
- AllowInnerSlashes: true
125
-
126
- # We use words, like `$LOAD_PATH`, because they are much less confusing that
127
- # arcane symbols like `$:`. Unfortunately, we must then `require "English"` in
128
- # a few places, but it's worth it so that we can read our code.
129
- Style/SpecialGlobalVars:
130
- EnforcedStyle: use_english_names
131
-
132
- Style/StringLiterals:
133
- EnforcedStyle: double_quotes
@@ -1,74 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2018-05-22 23:50:03 -0400 using RuboCop version 0.56.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 10
10
- Metrics/AbcSize:
11
- Max: 18.5
12
-
13
- # Offense count: 59
14
- # Cop supports --auto-correct.
15
- # Configuration parameters: EnforcedStyle.
16
- # SupportedStyles: prefer_alias, prefer_alias_method
17
- Style/Alias:
18
- Enabled: false
19
-
20
- # Offense count: 5
21
- Style/ClassVars:
22
- Exclude:
23
- - 'lib/authlogic/i18n.rb'
24
-
25
- # Offense count: 22
26
- Style/Documentation:
27
- Exclude:
28
- # Permanent
29
- - 'test/**/*'
30
-
31
- # TODO
32
- - 'lib/authlogic/config.rb'
33
- - 'lib/authlogic/controller_adapters/sinatra_adapter.rb'
34
- - 'lib/authlogic/crypto_providers.rb'
35
- - 'lib/authlogic/i18n/translator.rb'
36
- - 'lib/authlogic/session/activation.rb'
37
- - 'lib/authlogic/session/active_record_trickery.rb'
38
- - 'lib/authlogic/session/existence.rb'
39
- - 'lib/authlogic/session/foundation.rb'
40
- - 'lib/authlogic/session/klass.rb'
41
- - 'lib/authlogic/session/persistence.rb'
42
- - 'lib/authlogic/session/scopes.rb'
43
- - 'lib/authlogic/test_case.rb'
44
- - 'lib/authlogic/test_case/mock_cookie_jar.rb'
45
- - 'lib/authlogic/version.rb'
46
-
47
- Style/FrozenStringLiteralComment:
48
- Exclude:
49
- # Freezing strings in lib would be a breaking change. We'll have to wait
50
- # for the next major version.
51
- - lib/**/*
52
-
53
- # Offense count: 4
54
- Style/MethodMissingSuper:
55
- Exclude:
56
- - 'lib/authlogic/controller_adapters/abstract_adapter.rb'
57
- - 'lib/authlogic/controller_adapters/sinatra_adapter.rb'
58
- - 'lib/authlogic/test_case/mock_request.rb'
59
-
60
- # Offense count: 3
61
- Style/MissingRespondToMissing:
62
- Exclude:
63
- - 'lib/authlogic/controller_adapters/sinatra_adapter.rb'
64
- - 'lib/authlogic/test_case/mock_request.rb'
65
-
66
- Style/NumericPredicate:
67
- Enabled: false
68
-
69
- # Offense count: 10
70
- # Cop supports --auto-correct.
71
- # Configuration parameters: .
72
- # SupportedStyles: compact, exploded
73
- Style/RaiseArgs:
74
- EnforcedStyle: compact
@@ -1,24 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
-
4
- before_install:
5
- - gem update --system
6
- - gem update bundler
7
-
8
- # We only test the oldest and the newest ruby versions that we support. We
9
- # do not test intermediate versions.
10
- rvm:
11
- - 2.3.7
12
- - 2.5.1
13
-
14
- # We only test living versions of rails, per the [rails maintenance
15
- # policy](http://guides.rubyonrails.org/maintenance_policy.html)
16
- gemfile:
17
- - gemfiles/Gemfile.rails-4.2.x
18
- - gemfiles/Gemfile.rails-5.1.x
19
- - gemfiles/Gemfile.rails-5.2.x
20
-
21
- matrix:
22
- fast_finish: true
23
-
24
- sudo: false
@@ -1,348 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
-
8
- ## 5.0.0
9
-
10
- See https://github.com/binarylogic/authlogic/blob/5-0-stable/CHANGELOG.md
11
-
12
- ## Unreleased
13
-
14
- * Breaking Changes
15
- * None
16
- * Added
17
- * None
18
- * Fixed
19
- * None
20
-
21
- ## 4.5.0 (2020-03-23)
22
-
23
- * Breaking Changes
24
- * None
25
- * Added
26
- * [#701](https://github.com/binarylogic/authlogic/pull/701) - Ability to
27
- specify None as a valid value to SameSite cookie attribute
28
- * Fixed
29
- * None
30
-
31
- ## 4.4.3 (2019-03-23)
32
-
33
- * Breaking Changes
34
- * None
35
- * Added
36
- * [#660](https://github.com/binarylogic/authlogic/pull/660) -
37
- Authlogic::Session::Cookies.encrypt_cookie option
38
- * Fixed
39
- * Restrict sqlite3 version so tests can run normally
40
-
41
- ## 4.4.2 (2018-09-23)
42
-
43
- * Breaking Changes
44
- * None
45
- * Added
46
- * None
47
- * Fixed
48
- * Improved instructions in deprecation warning for validations
49
-
50
- ## 4.4.1 (2018-09-21)
51
-
52
- * Breaking Changes
53
- * None
54
- * Added
55
- * None
56
- * Fixed
57
- * The methods for disabling Authlogic's "special" validations,
58
- eg. `validate_email_field = false` are actually deprecated, but should
59
- not produce a deprecation warning.
60
- * Only produce deprecation warning when configuring a validation, not when
61
- performing actual validation.
62
-
63
- ## 4.4.0 (2018-09-21)
64
-
65
- * Breaking Changes
66
- * None
67
- * Added
68
- * None
69
- * Fixed
70
- * None
71
- * Deprecation
72
- * [#627](https://github.com/binarylogic/authlogic/pull/627) -
73
- Deprecate `authenticates_many` without replacement
74
- * [#623](https://github.com/binarylogic/authlogic/pull/623) -
75
- Deprecate unnecessary validation features, use normal rails validation
76
- instead
77
-
78
- ## 4.3.0 (2018-08-12)
79
-
80
- * Breaking Changes
81
- * None
82
- * Added
83
- * None
84
- * Fixed
85
- * None
86
- * Dependencies
87
- * Drop support for ruby 2.2, which reached EoL on 2018-06-20
88
-
89
- ## 4.2.0 (2018-07-18)
90
-
91
- * Breaking Changes
92
- * None
93
- * Added
94
- * [#611](https://github.com/binarylogic/authlogic/pull/611) - Deprecate
95
- AES256, guide users to choose a better crypto provider
96
- * Fixed
97
- * None
98
-
99
- ## 4.1.1 (2018-05-23)
100
-
101
- * Breaking Changes
102
- * None
103
- * Added
104
- * None
105
- * Fixed
106
- * [#606](https://github.com/binarylogic/authlogic/pull/606) - Interpreter
107
- warnings about undefined instance variables
108
-
109
- ## 4.1.0 (2018-04-24)
110
-
111
- * Breaking Changes
112
- * None
113
- * Added
114
- * None
115
- * Fixed
116
- * None
117
- * Deprecated
118
- * crypto_providers/wordpress.rb, without replacement
119
- * restful_authentication, without replacement
120
-
121
- ## 4.0.1 (2018-03-20)
122
-
123
- * Breaking Changes
124
- * None
125
- * Added
126
- * None
127
- * Fixed
128
- * [#590](https://github.com/binarylogic/authlogic/pull/590) -
129
- Fix "cannot modify frozen gem" re: ActiveRecord.gem_version
130
-
131
- ## 4.0.0 (2018-03-18)
132
-
133
- * Breaking Changes, Major
134
- * Drop support for ruby < 2.2
135
- * Drop support for rails < 4.2
136
- * HTTP Basic Auth is now disabled by default (use allow_http_basic_auth to enable)
137
- * 'httponly' and 'secure' cookie options are enabled by default now
138
- * maintain_sessions config has been removed. It has been split into 2 new options:
139
- log_in_after_create & log_in_after_password_change (@lucasminissale)
140
- * [#558](https://github.com/binarylogic/authlogic/pull/558) Passing an
141
- ActionController::Parameters into authlogic will now raise an error
142
-
143
- * Breaking Changes, Minor
144
- * Methods in Authlogic::Random are now module methods, and are no longer
145
- instance methods. Previously, there were both. Do not use Authlogic::Random
146
- as a mixin.
147
- * Our mutable constants (e.g. arrays, hashes) are now frozen.
148
-
149
- * Added
150
- * `Authlogic.gem_version`
151
- * [#586](https://github.com/binarylogic/authlogic/pull/586) Support for SameSite cookies
152
- * [#581](https://github.com/binarylogic/authlogic/pull/581) Support for rails 5.2
153
- * Support for ruby 2.4, specifically openssl gem 2.0
154
- * [#98](https://github.com/binarylogic/authlogic/issues/98)
155
- I18n for invalid session error message. (@eugenebolshakov)
156
-
157
- * Fixed
158
- * Random.friendly_token (used for e.g. perishable token) now returns strings
159
- of consistent length, and conforms better to RFC-4648
160
- * ensure that login field validation uses correct locale (@sskirby)
161
- * add a respond_to_missing? in AbstractAdapter that also checks controller respond_to?
162
- * [#561](https://github.com/binarylogic/authlogic/issues/561) authenticates_many now works with scope_cookies:true
163
- * Allow tld up to 24 characters per https://data.iana.org/TLD/tlds-alpha-by-domain.txt
164
-
165
- ## 3.8.0 2018-02-07
166
-
167
- * Breaking Changes
168
- * None
169
-
170
- * Added
171
- * [#582](https://github.com/binarylogic/authlogic/pull/582) Support rails 5.2
172
- * [#583](https://github.com/binarylogic/authlogic/pull/583) Support openssl gem 2.0
173
-
174
- * Fixed
175
- * None
176
-
177
- ## 3.7.0 2018-02-07
178
-
179
- * Breaking Changes
180
- * None
181
-
182
- * Added
183
- * [#580](https://github.com/binarylogic/authlogic/pull/580) Deprecated
184
- `ActionController::Parameters`, will be removed in 4.0.0
185
-
186
- * Fixed
187
- * None
188
-
189
- ## 3.6.1 2017-09-30
190
-
191
- * Breaking Changes
192
- * None
193
-
194
- * Added
195
- * None
196
-
197
- * Fixed
198
- * Allow TLD up to 24 characters per
199
- https://data.iana.org/TLD/tlds-alpha-by-domain.txt
200
- * [#561](https://github.com/binarylogic/authlogic/issues/561)
201
- authenticates_many now works with scope_cookies:true
202
-
203
- ## 3.6.0 2017-04-28
204
-
205
- * Breaking Changes
206
- * None
207
-
208
- * Added
209
- * Support rails 5.1
210
-
211
- * Fixed
212
- * ensure that login field validation uses correct locale (@sskirby)
213
-
214
- ## 3.5.0 2016-08-29
215
-
216
- * new
217
- * Rails 5.0 support! Thanks to all reporters and contributors.
218
-
219
- * changes
220
- * increased default minimum password length to 8 (@iainbeeston)
221
- * bind parameters in where statement for rails 5 support
222
- * change callback for rails 5 support
223
- * converts the ActionController::Parameters to a Hash for rails 5 support
224
- * check last_request_at_threshold even if last_request_at_update_allowed returns true (@rofreg)
225
-
226
- ## 3.4.6 2015
227
-
228
- * changes
229
- * add Regex.email_nonascii for validation of emails w/unicode (@rchekaluk)
230
- * allow scrypt 2.x (@jaredbeck)
231
-
232
- ## 3.4.5 2015-03-01
233
-
234
- * changes
235
- * security-hardening fix and cleanup in persistence_token lookup
236
- * security-hardening fix in perishable_token lookup (thx @tomekr)
237
-
238
- ## 3.4.4 2014-12-23
239
-
240
- * changes
241
- * extract rw_config into an Authlogic::Config module
242
- * improved the way config changes are made in tests
243
- * fix for Rails 4.2 by extending ActiveModel
244
-
245
- ## 3.4.3 2014-10-08
246
-
247
- * changes
248
- * backfill CHANGELOG
249
- * better compatibility with jruby (thx @petergoldstein)
250
- * added scrypt as a dependency
251
- * cleanup some code (thx @roryokane)
252
- * reference 'bcrypt' gem instead of 'bcrypt-ruby' (thx @roryokane)
253
- * fixed typo (thx @chamini2)
254
- * fixed magic column validations for Rails 4.2 (thx @tom-kuca)
255
-
256
- ## 3.4.2 2014-04-28
257
-
258
- * changes
259
- * fixed the missing scrypt/bcrypt gem errors introduced in 3.4.1
260
- * implemented autoloading for providers
261
- * added longer subdomain support in email regex
262
-
263
- ## 3.4.1 2014-04-04
264
-
265
- * changes
266
- * undid an accidental revert of some code
267
-
268
- ## 3.4.0 2014-03-03
269
-
270
- * Breaking Changes
271
- * made scrypt the default crypto provider from SHA512
272
- (https://github.com/binarylogic/authlogic#upgrading-to-authlogic-340)
273
- See UPGRADING.md.
274
-
275
- * Added
276
- * officially support rails 4 (still supporting rails 3)
277
- * added cookie signing
278
- * added request store for better concurency for threaded environments
279
- * added a rack adapter for Rack middleware support
280
-
281
- * Fixed
282
- * ditched appraisal
283
- * improved find_with_case default performance
284
- * added travis ci support
285
-
286
- ## 3.3.0 2014-04-04
287
-
288
- * changes
289
- * added safeguard against a sqli that was also fixed in rails 3.2.10/3.1.9/3.0.18
290
- * imposed the bcrypt gem's mincost
291
- * removed shoulda macros
292
-
293
- ## 3.2.0 2012-12-07
294
-
295
- * new
296
- * scrypt support
297
-
298
- * changes
299
- * moved back to LOWER for find_with_case ci lookups
300
-
301
- ## 3.1.3 2012-06-13
302
-
303
- * changes
304
- * removed jeweler
305
-
306
- ## 3.1.2 2012-06-01
307
-
308
- * changes
309
- * mostly test fixes
310
-
311
- ## 3.1.1 2012-06-01
312
-
313
- * changes
314
- * mostly doc fixes
315
-
316
- ## 3.1.0 2011-10-19
317
-
318
- * changes
319
- * mostly small bug fixes
320
-
321
- ## 3.0.3 2011-05-17
322
-
323
- * changes
324
- * rails 3.1 support
325
-
326
- * new
327
- * http auth support
328
-
329
- ## 3.0.2 2011-04-30
330
-
331
- * changes
332
- * doc fixes
333
-
334
- ## 3.0.1 2011-04-30
335
-
336
- * changes
337
- * switch from LOWER to LIKE for find_with_case ci lookups
338
-
339
- ## 3.0.0 2011-04-30
340
-
341
- * new
342
- * ssl cookie support
343
- * httponly cookie support
344
- * added a session generator
345
-
346
- * changes
347
- * rails 3 support
348
- * ruby 1.9.2 support