authlogic 4.4.3 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/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
@@ -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
data/.rubocop.yml
DELETED
@@ -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
|
data/.rubocop_todo.yml
DELETED
@@ -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
|
data/.travis.yml
DELETED
@@ -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
|
data/CHANGELOG.md
DELETED
@@ -1,336 +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](https://github.com/binarylogic/authlogic/blob/5-0-stable/CHANGELOG.md)
|
9
|
-
|
10
|
-
* Breaking Changes
|
11
|
-
* Drop AES256 crypto provider, deprecated in 4.2.0
|
12
|
-
* Drop support for transitioning from restful_authentication, deprecated in 4.1.0
|
13
|
-
* Uses `frozen_string_literal`, so assume all strings returned are frozen
|
14
|
-
* Added
|
15
|
-
* None
|
16
|
-
* Fixed
|
17
|
-
* None
|
18
|
-
|
19
|
-
## 4.4.3 (2019-03-23)
|
20
|
-
|
21
|
-
* Breaking Changes
|
22
|
-
* None
|
23
|
-
* Added
|
24
|
-
* [#660](https://github.com/binarylogic/authlogic/pull/660) -
|
25
|
-
Authlogic::Session::Cookies.encrypt_cookie option
|
26
|
-
* Fixed
|
27
|
-
* Restrict sqlite3 version so tests can run normally
|
28
|
-
|
29
|
-
## 4.4.2 (2018-09-23)
|
30
|
-
|
31
|
-
* Breaking Changes
|
32
|
-
* None
|
33
|
-
* Added
|
34
|
-
* None
|
35
|
-
* Fixed
|
36
|
-
* Improved instructions in deprecation warning for validations
|
37
|
-
|
38
|
-
## 4.4.1 (2018-09-21)
|
39
|
-
|
40
|
-
* Breaking Changes
|
41
|
-
* None
|
42
|
-
* Added
|
43
|
-
* None
|
44
|
-
* Fixed
|
45
|
-
* The methods for disabling Authlogic's "special" validations,
|
46
|
-
eg. `validate_email_field = false` are actually deprecated, but should
|
47
|
-
not produce a deprecation warning.
|
48
|
-
* Only produce deprecation warning when configuring a validation, not when
|
49
|
-
performing actual validation.
|
50
|
-
|
51
|
-
## 4.4.0 (2018-09-21)
|
52
|
-
|
53
|
-
* Breaking Changes
|
54
|
-
* None
|
55
|
-
* Added
|
56
|
-
* None
|
57
|
-
* Fixed
|
58
|
-
* None
|
59
|
-
* Deprecation
|
60
|
-
* [#627](https://github.com/binarylogic/authlogic/pull/627) -
|
61
|
-
Deprecate `authenticates_many` without replacement
|
62
|
-
* [#623](https://github.com/binarylogic/authlogic/pull/623) -
|
63
|
-
Deprecate unnecessary validation features, use normal rails validation
|
64
|
-
instead
|
65
|
-
|
66
|
-
## 4.3.0 (2018-08-12)
|
67
|
-
|
68
|
-
* Breaking Changes
|
69
|
-
* None
|
70
|
-
* Added
|
71
|
-
* None
|
72
|
-
* Fixed
|
73
|
-
* None
|
74
|
-
* Dependencies
|
75
|
-
* Drop support for ruby 2.2, which reached EoL on 2018-06-20
|
76
|
-
|
77
|
-
## 4.2.0 (2018-07-18)
|
78
|
-
|
79
|
-
* Breaking Changes
|
80
|
-
* None
|
81
|
-
* Added
|
82
|
-
* [#611](https://github.com/binarylogic/authlogic/pull/611) - Deprecate
|
83
|
-
AES256, guide users to choose a better crypto provider
|
84
|
-
* Fixed
|
85
|
-
* None
|
86
|
-
|
87
|
-
## 4.1.1 (2018-05-23)
|
88
|
-
|
89
|
-
* Breaking Changes
|
90
|
-
* None
|
91
|
-
* Added
|
92
|
-
* None
|
93
|
-
* Fixed
|
94
|
-
* [#606](https://github.com/binarylogic/authlogic/pull/606) - Interpreter
|
95
|
-
warnings about undefined instance variables
|
96
|
-
|
97
|
-
## 4.1.0 (2018-04-24)
|
98
|
-
|
99
|
-
* Breaking Changes
|
100
|
-
* None
|
101
|
-
* Added
|
102
|
-
* None
|
103
|
-
* Fixed
|
104
|
-
* None
|
105
|
-
* Deprecated
|
106
|
-
* crypto_providers/wordpress.rb, without replacement
|
107
|
-
* restful_authentication, without replacement
|
108
|
-
|
109
|
-
## 4.0.1 (2018-03-20)
|
110
|
-
|
111
|
-
* Breaking Changes
|
112
|
-
* None
|
113
|
-
* Added
|
114
|
-
* None
|
115
|
-
* Fixed
|
116
|
-
* [#590](https://github.com/binarylogic/authlogic/pull/590) -
|
117
|
-
Fix "cannot modify frozen gem" re: ActiveRecord.gem_version
|
118
|
-
|
119
|
-
## 4.0.0 (2018-03-18)
|
120
|
-
|
121
|
-
* Breaking Changes, Major
|
122
|
-
* Drop support for ruby < 2.2
|
123
|
-
* Drop support for rails < 4.2
|
124
|
-
* HTTP Basic Auth is now disabled by default (use allow_http_basic_auth to enable)
|
125
|
-
* 'httponly' and 'secure' cookie options are enabled by default now
|
126
|
-
* maintain_sessions config has been removed. It has been split into 2 new options:
|
127
|
-
log_in_after_create & log_in_after_password_change (@lucasminissale)
|
128
|
-
* [#558](https://github.com/binarylogic/authlogic/pull/558) Passing an
|
129
|
-
ActionController::Parameters into authlogic will now raise an error
|
130
|
-
|
131
|
-
* Breaking Changes, Minor
|
132
|
-
* Methods in Authlogic::Random are now module methods, and are no longer
|
133
|
-
instance methods. Previously, there were both. Do not use Authlogic::Random
|
134
|
-
as a mixin.
|
135
|
-
* Our mutable constants (e.g. arrays, hashes) are now frozen.
|
136
|
-
|
137
|
-
* Added
|
138
|
-
* `Authlogic.gem_version`
|
139
|
-
* [#586](https://github.com/binarylogic/authlogic/pull/586) Support for SameSite cookies
|
140
|
-
* [#581](https://github.com/binarylogic/authlogic/pull/581) Support for rails 5.2
|
141
|
-
* Support for ruby 2.4, specifically openssl gem 2.0
|
142
|
-
* [#98](https://github.com/binarylogic/authlogic/issues/98)
|
143
|
-
I18n for invalid session error message. (@eugenebolshakov)
|
144
|
-
|
145
|
-
* Fixed
|
146
|
-
* Random.friendly_token (used for e.g. perishable token) now returns strings
|
147
|
-
of consistent length, and conforms better to RFC-4648
|
148
|
-
* ensure that login field validation uses correct locale (@sskirby)
|
149
|
-
* add a respond_to_missing? in AbstractAdapter that also checks controller respond_to?
|
150
|
-
* [#561](https://github.com/binarylogic/authlogic/issues/561) authenticates_many now works with scope_cookies:true
|
151
|
-
* Allow tld up to 24 characters per https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
152
|
-
|
153
|
-
## 3.8.0 2018-02-07
|
154
|
-
|
155
|
-
* Breaking Changes
|
156
|
-
* None
|
157
|
-
|
158
|
-
* Added
|
159
|
-
* [#582](https://github.com/binarylogic/authlogic/pull/582) Support rails 5.2
|
160
|
-
* [#583](https://github.com/binarylogic/authlogic/pull/583) Support openssl gem 2.0
|
161
|
-
|
162
|
-
* Fixed
|
163
|
-
* None
|
164
|
-
|
165
|
-
## 3.7.0 2018-02-07
|
166
|
-
|
167
|
-
* Breaking Changes
|
168
|
-
* None
|
169
|
-
|
170
|
-
* Added
|
171
|
-
* [#580](https://github.com/binarylogic/authlogic/pull/580) Deprecated
|
172
|
-
`ActionController::Parameters`, will be removed in 4.0.0
|
173
|
-
|
174
|
-
* Fixed
|
175
|
-
* None
|
176
|
-
|
177
|
-
## 3.6.1 2017-09-30
|
178
|
-
|
179
|
-
* Breaking Changes
|
180
|
-
* None
|
181
|
-
|
182
|
-
* Added
|
183
|
-
* None
|
184
|
-
|
185
|
-
* Fixed
|
186
|
-
* Allow TLD up to 24 characters per
|
187
|
-
https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
188
|
-
* [#561](https://github.com/binarylogic/authlogic/issues/561)
|
189
|
-
authenticates_many now works with scope_cookies:true
|
190
|
-
|
191
|
-
## 3.6.0 2017-04-28
|
192
|
-
|
193
|
-
* Breaking Changes
|
194
|
-
* None
|
195
|
-
|
196
|
-
* Added
|
197
|
-
* Support rails 5.1
|
198
|
-
|
199
|
-
* Fixed
|
200
|
-
* ensure that login field validation uses correct locale (@sskirby)
|
201
|
-
|
202
|
-
## 3.5.0 2016-08-29
|
203
|
-
|
204
|
-
* new
|
205
|
-
* Rails 5.0 support! Thanks to all reporters and contributors.
|
206
|
-
|
207
|
-
* changes
|
208
|
-
* increased default minimum password length to 8 (@iainbeeston)
|
209
|
-
* bind parameters in where statement for rails 5 support
|
210
|
-
* change callback for rails 5 support
|
211
|
-
* converts the ActionController::Parameters to a Hash for rails 5 support
|
212
|
-
* check last_request_at_threshold even if last_request_at_update_allowed returns true (@rofreg)
|
213
|
-
|
214
|
-
## 3.4.6 2015
|
215
|
-
|
216
|
-
* changes
|
217
|
-
* add Regex.email_nonascii for validation of emails w/unicode (@rchekaluk)
|
218
|
-
* allow scrypt 2.x (@jaredbeck)
|
219
|
-
|
220
|
-
## 3.4.5 2015-03-01
|
221
|
-
|
222
|
-
* changes
|
223
|
-
* security-hardening fix and cleanup in persistence_token lookup
|
224
|
-
* security-hardening fix in perishable_token lookup (thx @tomekr)
|
225
|
-
|
226
|
-
## 3.4.4 2014-12-23
|
227
|
-
|
228
|
-
* changes
|
229
|
-
* extract rw_config into an Authlogic::Config module
|
230
|
-
* improved the way config changes are made in tests
|
231
|
-
* fix for Rails 4.2 by extending ActiveModel
|
232
|
-
|
233
|
-
## 3.4.3 2014-10-08
|
234
|
-
|
235
|
-
* changes
|
236
|
-
* backfill CHANGELOG
|
237
|
-
* better compatibility with jruby (thx @petergoldstein)
|
238
|
-
* added scrypt as a dependency
|
239
|
-
* cleanup some code (thx @roryokane)
|
240
|
-
* reference 'bcrypt' gem instead of 'bcrypt-ruby' (thx @roryokane)
|
241
|
-
* fixed typo (thx @chamini2)
|
242
|
-
* fixed magic column validations for Rails 4.2 (thx @tom-kuca)
|
243
|
-
|
244
|
-
## 3.4.2 2014-04-28
|
245
|
-
|
246
|
-
* changes
|
247
|
-
* fixed the missing scrypt/bcrypt gem errors introduced in 3.4.1
|
248
|
-
* implemented autoloading for providers
|
249
|
-
* added longer subdomain support in email regex
|
250
|
-
|
251
|
-
## 3.4.1 2014-04-04
|
252
|
-
|
253
|
-
* changes
|
254
|
-
* undid an accidental revert of some code
|
255
|
-
|
256
|
-
## 3.4.0 2014-03-03
|
257
|
-
|
258
|
-
* Breaking Changes
|
259
|
-
* made scrypt the default crypto provider from SHA512
|
260
|
-
(https://github.com/binarylogic/authlogic#upgrading-to-authlogic-340)
|
261
|
-
See UPGRADING.md.
|
262
|
-
|
263
|
-
* Added
|
264
|
-
* officially support rails 4 (still supporting rails 3)
|
265
|
-
* added cookie signing
|
266
|
-
* added request store for better concurency for threaded environments
|
267
|
-
* added a rack adapter for Rack middleware support
|
268
|
-
|
269
|
-
* Fixed
|
270
|
-
* ditched appraisal
|
271
|
-
* improved find_with_case default performance
|
272
|
-
* added travis ci support
|
273
|
-
|
274
|
-
## 3.3.0 2014-04-04
|
275
|
-
|
276
|
-
* changes
|
277
|
-
* added safeguard against a sqli that was also fixed in rails 3.2.10/3.1.9/3.0.18
|
278
|
-
* imposed the bcrypt gem's mincost
|
279
|
-
* removed shoulda macros
|
280
|
-
|
281
|
-
## 3.2.0 2012-12-07
|
282
|
-
|
283
|
-
* new
|
284
|
-
* scrypt support
|
285
|
-
|
286
|
-
* changes
|
287
|
-
* moved back to LOWER for find_with_case ci lookups
|
288
|
-
|
289
|
-
## 3.1.3 2012-06-13
|
290
|
-
|
291
|
-
* changes
|
292
|
-
* removed jeweler
|
293
|
-
|
294
|
-
## 3.1.2 2012-06-01
|
295
|
-
|
296
|
-
* changes
|
297
|
-
* mostly test fixes
|
298
|
-
|
299
|
-
## 3.1.1 2012-06-01
|
300
|
-
|
301
|
-
* changes
|
302
|
-
* mostly doc fixes
|
303
|
-
|
304
|
-
## 3.1.0 2011-10-19
|
305
|
-
|
306
|
-
* changes
|
307
|
-
* mostly small bug fixes
|
308
|
-
|
309
|
-
## 3.0.3 2011-05-17
|
310
|
-
|
311
|
-
* changes
|
312
|
-
* rails 3.1 support
|
313
|
-
|
314
|
-
* new
|
315
|
-
* http auth support
|
316
|
-
|
317
|
-
## 3.0.2 2011-04-30
|
318
|
-
|
319
|
-
* changes
|
320
|
-
* doc fixes
|
321
|
-
|
322
|
-
## 3.0.1 2011-04-30
|
323
|
-
|
324
|
-
* changes
|
325
|
-
* switch from LOWER to LIKE for find_with_case ci lookups
|
326
|
-
|
327
|
-
## 3.0.0 2011-04-30
|
328
|
-
|
329
|
-
* new
|
330
|
-
* ssl cookie support
|
331
|
-
* httponly cookie support
|
332
|
-
* added a session generator
|
333
|
-
|
334
|
-
* changes
|
335
|
-
* rails 3 support
|
336
|
-
* ruby 1.9.2 support
|