sorcery 0.11.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/FUNDING.yml +1 -0
- data/.github/ISSUE_TEMPLATE.md +20 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +5 -0
- data/.github/workflows/ruby.yml +49 -0
- data/.rubocop.yml +55 -0
- data/.rubocop_todo.yml +163 -0
- data/CHANGELOG.md +84 -0
- data/CODE_OF_CONDUCT.md +14 -0
- data/Gemfile +2 -2
- data/{LICENSE.txt → LICENSE.md} +1 -1
- data/README.md +34 -8
- data/Rakefile +3 -1
- data/SECURITY.md +19 -0
- data/gemfiles/rails_52.gemfile +7 -0
- data/gemfiles/rails_60.gemfile +7 -0
- data/lib/generators/sorcery/USAGE +1 -1
- data/lib/generators/sorcery/helpers.rb +4 -0
- data/lib/generators/sorcery/install_generator.rb +21 -21
- data/lib/generators/sorcery/templates/initializer.rb +176 -69
- data/lib/generators/sorcery/templates/migration/activity_logging.rb +5 -5
- data/lib/generators/sorcery/templates/migration/brute_force_protection.rb +4 -4
- data/lib/generators/sorcery/templates/migration/core.rb +4 -4
- data/lib/generators/sorcery/templates/migration/external.rb +3 -3
- data/lib/generators/sorcery/templates/migration/magic_login.rb +9 -0
- data/lib/generators/sorcery/templates/migration/remember_me.rb +3 -3
- data/lib/generators/sorcery/templates/migration/reset_password.rb +5 -4
- data/lib/generators/sorcery/templates/migration/user_activation.rb +4 -4
- data/lib/sorcery.rb +2 -0
- data/lib/sorcery/adapters/active_record_adapter.rb +4 -3
- data/lib/sorcery/adapters/mongoid_adapter.rb +23 -11
- data/lib/sorcery/controller.rb +26 -15
- data/lib/sorcery/controller/config.rb +7 -5
- data/lib/sorcery/controller/submodules/activity_logging.rb +9 -3
- data/lib/sorcery/controller/submodules/external.rb +49 -33
- data/lib/sorcery/controller/submodules/http_basic_auth.rb +2 -0
- data/lib/sorcery/controller/submodules/remember_me.rb +3 -8
- data/lib/sorcery/controller/submodules/session_timeout.rb +28 -5
- data/lib/sorcery/crypto_providers/aes256.rb +2 -1
- data/lib/sorcery/crypto_providers/bcrypt.rb +8 -2
- data/lib/sorcery/engine.rb +16 -3
- data/lib/sorcery/model.rb +14 -10
- data/lib/sorcery/model/config.rb +12 -4
- data/lib/sorcery/model/submodules/brute_force_protection.rb +6 -7
- data/lib/sorcery/model/submodules/external.rb +19 -3
- data/lib/sorcery/model/submodules/magic_login.rb +130 -0
- data/lib/sorcery/model/submodules/reset_password.rb +25 -2
- data/lib/sorcery/model/submodules/user_activation.rb +1 -1
- data/lib/sorcery/model/temporary_token.rb +3 -1
- data/lib/sorcery/protocols/oauth.rb +1 -0
- data/lib/sorcery/providers/auth0.rb +46 -0
- data/lib/sorcery/providers/battlenet.rb +51 -0
- data/lib/sorcery/providers/discord.rb +52 -0
- data/lib/sorcery/providers/heroku.rb +1 -0
- data/lib/sorcery/providers/instagram.rb +73 -0
- data/lib/sorcery/providers/line.rb +63 -0
- data/lib/sorcery/providers/linkedin.rb +45 -36
- data/lib/sorcery/providers/vk.rb +5 -4
- data/lib/sorcery/providers/wechat.rb +8 -6
- data/lib/sorcery/test_helpers/internal.rb +5 -4
- data/lib/sorcery/test_helpers/internal/rails.rb +11 -11
- data/lib/sorcery/test_helpers/rails/request.rb +20 -0
- data/lib/sorcery/version.rb +1 -1
- data/sorcery.gemspec +27 -11
- data/spec/active_record/user_activation_spec.rb +2 -2
- data/spec/active_record/user_activity_logging_spec.rb +2 -2
- data/spec/active_record/user_brute_force_protection_spec.rb +2 -2
- data/spec/active_record/user_magic_login_spec.rb +15 -0
- data/spec/active_record/user_oauth_spec.rb +2 -2
- data/spec/active_record/user_remember_me_spec.rb +2 -2
- data/spec/active_record/user_reset_password_spec.rb +2 -2
- data/spec/active_record/user_spec.rb +0 -10
- data/spec/controllers/controller_http_basic_auth_spec.rb +1 -1
- data/spec/controllers/controller_oauth2_spec.rb +230 -123
- data/spec/controllers/controller_oauth_spec.rb +13 -7
- data/spec/controllers/controller_remember_me_spec.rb +16 -8
- data/spec/controllers/controller_session_timeout_spec.rb +90 -3
- data/spec/controllers/controller_spec.rb +13 -3
- data/spec/orm/active_record.rb +2 -2
- data/spec/providers/example_provider_spec.rb +17 -0
- data/spec/providers/example_spec.rb +17 -0
- data/spec/providers/vk_spec.rb +42 -0
- data/spec/rails_app/app/assets/config/manifest.js +1 -0
- data/spec/rails_app/app/controllers/application_controller.rb +2 -0
- data/spec/rails_app/app/controllers/sorcery_controller.rb +152 -33
- data/spec/rails_app/app/mailers/sorcery_mailer.rb +7 -0
- data/spec/rails_app/app/views/sorcery_mailer/magic_login_email.html.erb +13 -0
- data/spec/rails_app/app/views/sorcery_mailer/magic_login_email.text.erb +6 -0
- data/spec/rails_app/config/application.rb +8 -3
- data/spec/rails_app/config/boot.rb +1 -1
- data/spec/rails_app/config/environment.rb +1 -1
- data/spec/rails_app/config/routes.rb +17 -0
- data/spec/rails_app/config/secrets.yml +4 -0
- data/spec/rails_app/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb +2 -2
- data/spec/rails_app/db/migrate/invalidate_active_sessions/20180221093235_add_invalidate_active_sessions_before_to_users.rb +9 -0
- data/spec/rails_app/db/migrate/magic_login/20170924151831_add_magic_login_to_users.rb +17 -0
- data/spec/rails_app/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb +2 -0
- data/spec/rails_app/db/schema.rb +7 -9
- data/spec/shared_examples/user_magic_login_shared_examples.rb +150 -0
- data/spec/shared_examples/user_oauth_shared_examples.rb +1 -1
- data/spec/shared_examples/user_remember_me_shared_examples.rb +1 -1
- data/spec/shared_examples/user_reset_password_shared_examples.rb +37 -5
- data/spec/shared_examples/user_shared_examples.rb +104 -43
- data/spec/sorcery_crypto_providers_spec.rb +61 -1
- data/spec/sorcery_temporary_token_spec.rb +27 -0
- data/spec/spec.opts +1 -1
- data/spec/spec_helper.rb +2 -2
- data/spec/support/migration_helper.rb +29 -0
- data/spec/support/providers/example.rb +11 -0
- data/spec/support/providers/example_provider.rb +11 -0
- metadata +97 -34
- data/.travis.yml +0 -57
- data/gemfiles/active_record-rails40.gemfile +0 -7
- data/gemfiles/active_record-rails41.gemfile +0 -7
- data/gemfiles/active_record-rails42.gemfile +0 -7
- data/spec/rails_app/config/initializers/secret_token.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0f0614713fb5b564c7273b8f08b71547414613303b574156932f415dee83286e
|
4
|
+
data.tar.gz: aa2b3081950f5c5f4615dbb21f535fa90ade9a600b29a9d41e3449bdd8551c58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 781c5dd4d01ab49353464f4e8eb1f1990351f75e1acf307ef9fb83892e4304fd5a5876afa4b8091e4f4edad6661e1f6a4b6b226eb8cb1b290d0712e30826414b
|
7
|
+
data.tar.gz: 347e36c6b09f16eaa1028e8ae02eca140763d07c9981a74b867997994e32a968dcde6016b4b8aab61738ee5eaf463989775ae1c1d257bc561e20ec30ac7e4068
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
github: athix
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Please complete all sections.
|
2
|
+
|
3
|
+
### Configuration
|
4
|
+
|
5
|
+
- Sorcery Version: ``
|
6
|
+
- Ruby Version: ``
|
7
|
+
- Framework: ``
|
8
|
+
- Platform: ``
|
9
|
+
|
10
|
+
### Expected Behavior
|
11
|
+
|
12
|
+
Tell us what should happen.
|
13
|
+
|
14
|
+
### Actual Behavior
|
15
|
+
|
16
|
+
Tell us what happens instead.
|
17
|
+
|
18
|
+
### Steps to Reproduce
|
19
|
+
|
20
|
+
Please list all steps to reproduce the issue.
|
@@ -0,0 +1,49 @@
|
|
1
|
+
name: Test Suite
|
2
|
+
|
3
|
+
# Run against all commits and pull requests.
|
4
|
+
on: [ push, pull_request ]
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
test_matrix:
|
8
|
+
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
|
11
|
+
strategy:
|
12
|
+
fail-fast: false
|
13
|
+
matrix:
|
14
|
+
ruby:
|
15
|
+
- 2.4
|
16
|
+
- 2.5
|
17
|
+
- 2.6
|
18
|
+
- 2.7
|
19
|
+
- 3.0
|
20
|
+
|
21
|
+
rails:
|
22
|
+
- '52'
|
23
|
+
- '60'
|
24
|
+
|
25
|
+
exclude:
|
26
|
+
- ruby: 2.4
|
27
|
+
rails: '60'
|
28
|
+
- ruby: 3.0
|
29
|
+
rails: '52'
|
30
|
+
|
31
|
+
env:
|
32
|
+
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.rails }}.gemfile
|
33
|
+
|
34
|
+
steps:
|
35
|
+
- uses: actions/checkout@v2
|
36
|
+
- name: Set up Ruby
|
37
|
+
uses: ruby/setup-ruby@v1
|
38
|
+
with:
|
39
|
+
ruby-version: ${{ matrix.ruby }}
|
40
|
+
bundler-cache: true
|
41
|
+
- name: Run tests
|
42
|
+
run: bundle exec rake spec
|
43
|
+
|
44
|
+
finish:
|
45
|
+
runs-on: ubuntu-latest
|
46
|
+
needs: [ test_matrix ]
|
47
|
+
steps:
|
48
|
+
- name: Wait for status checks
|
49
|
+
run: echo "All Green!"
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
Exclude:
|
5
|
+
- 'lib/generators/sorcery/templates/**/*'
|
6
|
+
TargetRubyVersion: 2.6
|
7
|
+
|
8
|
+
# See: https://github.com/rubocop-hq/rubocop/issues/3344
|
9
|
+
Style/DoubleNegation:
|
10
|
+
Enabled: false
|
11
|
+
|
12
|
+
####################
|
13
|
+
## Pre-1.0.0 Code ##
|
14
|
+
####################
|
15
|
+
|
16
|
+
Metrics/AbcSize:
|
17
|
+
Exclude:
|
18
|
+
- 'lib/**/*'
|
19
|
+
- 'spec/**/*'
|
20
|
+
Metrics/BlockLength:
|
21
|
+
Exclude:
|
22
|
+
- 'lib/**/*'
|
23
|
+
- 'spec/**/*'
|
24
|
+
Layout/LineLength:
|
25
|
+
Exclude:
|
26
|
+
- 'lib/**/*'
|
27
|
+
- 'spec/**/*'
|
28
|
+
Metrics/ClassLength:
|
29
|
+
Exclude:
|
30
|
+
- 'lib/**/*'
|
31
|
+
- 'spec/**/*'
|
32
|
+
Metrics/CyclomaticComplexity:
|
33
|
+
Exclude:
|
34
|
+
- 'lib/**/*'
|
35
|
+
- 'spec/**/*'
|
36
|
+
Metrics/MethodLength:
|
37
|
+
Exclude:
|
38
|
+
- 'lib/**/*'
|
39
|
+
- 'spec/**/*'
|
40
|
+
Metrics/PerceivedComplexity:
|
41
|
+
Exclude:
|
42
|
+
- 'lib/**/*'
|
43
|
+
- 'spec/**/*'
|
44
|
+
Naming/AccessorMethodName:
|
45
|
+
Exclude:
|
46
|
+
- 'lib/**/*'
|
47
|
+
- 'spec/**/*'
|
48
|
+
Naming/PredicateName:
|
49
|
+
Exclude:
|
50
|
+
- 'lib/**/*'
|
51
|
+
- 'spec/**/*'
|
52
|
+
Style/Documentation:
|
53
|
+
Exclude:
|
54
|
+
- 'lib/**/*'
|
55
|
+
- 'spec/**/*'
|
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2021-04-04 05:00:11 UTC using RuboCop version 0.88.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: 1
|
10
|
+
# Configuration parameters: Include.
|
11
|
+
# Include: **/*.gemspec
|
12
|
+
Gemspec/RequiredRubyVersion:
|
13
|
+
Exclude:
|
14
|
+
- 'sorcery.gemspec'
|
15
|
+
|
16
|
+
# Offense count: 2
|
17
|
+
# Cop supports --auto-correct.
|
18
|
+
# Configuration parameters: IndentationWidth.
|
19
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
20
|
+
Layout/FirstHashElementIndentation:
|
21
|
+
EnforcedStyle: consistent
|
22
|
+
|
23
|
+
# Offense count: 83
|
24
|
+
# Cop supports --auto-correct.
|
25
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
26
|
+
# SupportedHashRocketStyles: key, separator, table
|
27
|
+
# SupportedColonStyles: key, separator, table
|
28
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
29
|
+
Layout/HashAlignment:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
# Offense count: 3
|
33
|
+
# Cop supports --auto-correct.
|
34
|
+
# Configuration parameters: AllowInHeredoc.
|
35
|
+
Layout/TrailingWhitespace:
|
36
|
+
Exclude:
|
37
|
+
- 'lib/sorcery/controller/submodules/external.rb'
|
38
|
+
|
39
|
+
# Offense count: 2
|
40
|
+
# Configuration parameters: AllowSafeAssignment.
|
41
|
+
Lint/AssignmentInCondition:
|
42
|
+
Exclude:
|
43
|
+
- 'spec/rails_app/app/controllers/sorcery_controller.rb'
|
44
|
+
|
45
|
+
# Offense count: 1
|
46
|
+
# Cop supports --auto-correct.
|
47
|
+
Lint/NonDeterministicRequireOrder:
|
48
|
+
Exclude:
|
49
|
+
- 'spec/spec_helper.rb'
|
50
|
+
|
51
|
+
# Offense count: 4
|
52
|
+
# Cop supports --auto-correct.
|
53
|
+
Lint/RedundantCopDisableDirective:
|
54
|
+
Exclude:
|
55
|
+
- 'lib/sorcery/controller.rb'
|
56
|
+
- 'lib/sorcery/model.rb'
|
57
|
+
- 'spec/rails_app/config/application.rb'
|
58
|
+
- 'spec/shared_examples/user_shared_examples.rb'
|
59
|
+
|
60
|
+
# Offense count: 4
|
61
|
+
# Cop supports --auto-correct.
|
62
|
+
Lint/SendWithMixinArgument:
|
63
|
+
Exclude:
|
64
|
+
- 'lib/sorcery.rb'
|
65
|
+
- 'lib/sorcery/engine.rb'
|
66
|
+
- 'lib/sorcery/test_helpers/internal/rails.rb'
|
67
|
+
|
68
|
+
# Offense count: 2
|
69
|
+
# Cop supports --auto-correct.
|
70
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
71
|
+
Lint/UnusedBlockArgument:
|
72
|
+
Exclude:
|
73
|
+
- 'spec/shared_examples/user_shared_examples.rb'
|
74
|
+
|
75
|
+
# Offense count: 1
|
76
|
+
# Cop supports --auto-correct.
|
77
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
78
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
79
|
+
Style/ConditionalAssignment:
|
80
|
+
Exclude:
|
81
|
+
- 'lib/sorcery/adapters/active_record_adapter.rb'
|
82
|
+
|
83
|
+
# Offense count: 1
|
84
|
+
# Cop supports --auto-correct.
|
85
|
+
Style/ExpandPathArguments:
|
86
|
+
Exclude:
|
87
|
+
- 'spec/rails_app/config.ru'
|
88
|
+
|
89
|
+
# Offense count: 1
|
90
|
+
# Configuration parameters: EnforcedStyle.
|
91
|
+
# SupportedStyles: annotated, template, unannotated
|
92
|
+
Style/FormatStringToken:
|
93
|
+
Exclude:
|
94
|
+
- 'lib/generators/sorcery/install_generator.rb'
|
95
|
+
|
96
|
+
# Offense count: 125
|
97
|
+
# Cop supports --auto-correct.
|
98
|
+
# Configuration parameters: EnforcedStyle.
|
99
|
+
# SupportedStyles: always, always_true, never
|
100
|
+
Style/FrozenStringLiteralComment:
|
101
|
+
Enabled: false
|
102
|
+
|
103
|
+
# Offense count: 3
|
104
|
+
# Cop supports --auto-correct.
|
105
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
106
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
107
|
+
Style/HashSyntax:
|
108
|
+
Exclude:
|
109
|
+
- 'lib/sorcery/adapters/active_record_adapter.rb'
|
110
|
+
- 'lib/sorcery/test_helpers/rails/integration.rb'
|
111
|
+
|
112
|
+
# Offense count: 34
|
113
|
+
# Cop supports --auto-correct.
|
114
|
+
Style/IfUnlessModifier:
|
115
|
+
Enabled: false
|
116
|
+
|
117
|
+
# Offense count: 1
|
118
|
+
# Cop supports --auto-correct.
|
119
|
+
Style/MultilineIfModifier:
|
120
|
+
Exclude:
|
121
|
+
- 'lib/sorcery/providers/line.rb'
|
122
|
+
|
123
|
+
# Offense count: 2
|
124
|
+
# Cop supports --auto-correct.
|
125
|
+
Style/RedundantBegin:
|
126
|
+
Exclude:
|
127
|
+
- 'lib/sorcery/controller.rb'
|
128
|
+
- 'lib/sorcery/model.rb'
|
129
|
+
|
130
|
+
# Offense count: 4
|
131
|
+
# Cop supports --auto-correct.
|
132
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
133
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
134
|
+
Style/SafeNavigation:
|
135
|
+
Exclude:
|
136
|
+
- 'lib/sorcery/controller/config.rb'
|
137
|
+
- 'lib/sorcery/controller/submodules/brute_force_protection.rb'
|
138
|
+
- 'lib/sorcery/controller/submodules/remember_me.rb'
|
139
|
+
- 'lib/sorcery/model.rb'
|
140
|
+
|
141
|
+
# Offense count: 7
|
142
|
+
# Cop supports --auto-correct.
|
143
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
144
|
+
# SupportedStyles: single_quotes, double_quotes
|
145
|
+
Style/StringLiterals:
|
146
|
+
Exclude:
|
147
|
+
- 'spec/controllers/controller_oauth2_spec.rb'
|
148
|
+
- 'spec/sorcery_crypto_providers_spec.rb'
|
149
|
+
|
150
|
+
# Offense count: 1
|
151
|
+
# Cop supports --auto-correct.
|
152
|
+
# Configuration parameters: EnforcedStyle, MinSize.
|
153
|
+
# SupportedStyles: percent, brackets
|
154
|
+
Style/SymbolArray:
|
155
|
+
Exclude:
|
156
|
+
- 'Rakefile'
|
157
|
+
|
158
|
+
# Offense count: 2
|
159
|
+
# Cop supports --auto-correct.
|
160
|
+
Style/UnpackFirst:
|
161
|
+
Exclude:
|
162
|
+
- 'lib/sorcery/crypto_providers/aes256.rb'
|
163
|
+
- 'spec/sorcery_crypto_providers_spec.rb'
|
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,95 @@
|
|
1
1
|
# Changelog
|
2
2
|
## HEAD
|
3
3
|
|
4
|
+
## 0.16.1
|
5
|
+
|
6
|
+
* Fix default table name being incorrect in migration generator [#274](https://github.com/Sorcery/sorcery/pull/274)
|
7
|
+
* Update `oauth` dependency per CVE-2016-11086
|
8
|
+
|
9
|
+
## 0.16.0
|
10
|
+
|
11
|
+
* Add BattleNet Provider [#260](https://github.com/Sorcery/sorcery/pull/260)
|
12
|
+
* Fix failing isolated tests [#249](https://github.com/Sorcery/sorcery/pull/249)
|
13
|
+
* Support LINE login v2.1 [#251](https://github.com/Sorcery/sorcery/pull/251)
|
14
|
+
* Update generators to better support namespaces [#237](https://github.com/Sorcery/sorcery/pull/237)
|
15
|
+
* Add support for Rails 6 [#238](https://github.com/Sorcery/sorcery/pull/238)
|
16
|
+
* Fix ruby 2.7 deprecation warnings [#241](https://github.com/Sorcery/sorcery/pull/241)
|
17
|
+
* Use set to ensure unique arrays [#233](https://github.com/Sorcery/sorcery/pull/233)
|
18
|
+
|
19
|
+
## 0.15.1
|
20
|
+
|
21
|
+
* Update `oauth` dependency per CVE-2016-11086
|
22
|
+
|
23
|
+
## 0.15.0
|
24
|
+
|
25
|
+
* Fix brute force vuln due to callbacks no being ran [#235](https://github.com/Sorcery/sorcery/pull/235)
|
26
|
+
* Revert on_load change due to breaking existing applications [#234](https://github.com/Sorcery/sorcery/pull/234)
|
27
|
+
* Add forget_me! and force_forget_me! test cases [#216](https://github.com/Sorcery/sorcery/pull/216)
|
28
|
+
* In `generic_send_email`, check responds_to [#211](https://github.com/Sorcery/sorcery/pull/211)
|
29
|
+
* Fix typo [#219](https://github.com/Sorcery/sorcery/pull/219)
|
30
|
+
* Fix deprecation warnings in Rails 6 [#209](https://github.com/Sorcery/sorcery/pull/209)
|
31
|
+
* Add ruby 2.6.5 to the travis build [#215](https://github.com/Sorcery/sorcery/pull/215)
|
32
|
+
* Add discord provider [#185](https://github.com/Sorcery/sorcery/pull/185)
|
33
|
+
* Remove MySQL database creation call [#214](https://github.com/Sorcery/sorcery/pull/214)
|
34
|
+
* Use id instead of uid for VK provider [#199](https://github.com/Sorcery/sorcery/pull/199)
|
35
|
+
* Don't :return_t JSON requests after login [#197](https://github.com/Sorcery/sorcery/pull/197)
|
36
|
+
* Fix email scope for LinkedIn Provider [#191](https://github.com/Sorcery/sorcery/pull/191)
|
37
|
+
* Ignore cookies when undefined cookies [#187](https://github.com/Sorcery/sorcery/pull/187)
|
38
|
+
* Allow for custom providers with multi-word class names. [#190](https://github.com/Sorcery/sorcery/pull/190)
|
39
|
+
|
40
|
+
## 0.14.0
|
41
|
+
|
42
|
+
* Update LinkedIn to use OAuth 2 [#189](https://github.com/Sorcery/sorcery/pull/189)
|
43
|
+
* Support the LINE login auth [#80](https://github.com/Sorcery/sorcery/pull/80)
|
44
|
+
* Allow BCrypt to have app-specific secret token [#173](https://github.com/Sorcery/sorcery/pull/173)
|
45
|
+
* Add #change_password method to reset_password module. [#165](https://github.com/Sorcery/sorcery/pull/165)
|
46
|
+
* Clean up initializer comments [#153](https://github.com/Sorcery/sorcery/pull/153)
|
47
|
+
* Allow load_from_magic_login_token to accept a block [#152](https://github.com/Sorcery/sorcery/pull/152)
|
48
|
+
* Fix CipherError class name [#142](https://github.com/Sorcery/sorcery/pull/142)
|
49
|
+
* Fix `update_failed_logins_count` being called twice when login failed [#163](https://github.com/Sorcery/sorcery/pull/163)
|
50
|
+
* Update migration templates to use new hash syntax [#170](https://github.com/Sorcery/sorcery/pull/170)
|
51
|
+
* Support for Rails 4.2 and lower soft-dropped [#171](https://github.com/Sorcery/sorcery/pull/171)
|
52
|
+
|
53
|
+
## 0.13.0
|
54
|
+
|
55
|
+
* Add support for Rails 5.2 / Ruby 2.5 [#129](https://github.com/Sorcery/sorcery/pull/129)
|
56
|
+
* Fix migration files not being generated [#128](https://github.com/Sorcery/sorcery/pull/128)
|
57
|
+
* Add support for ActionController::API [#133](https://github.com/Sorcery/sorcery/pull/133), [#150](https://github.com/Sorcery/sorcery/pull/150), [#159](https://github.com/Sorcery/sorcery/pull/159)
|
58
|
+
* Update activation email to use after_commit callback [#130](https://github.com/Sorcery/sorcery/pull/130)
|
59
|
+
* Add opt-in `invalidate_active_sessions!` method [#110](https://github.com/Sorcery/sorcery/pull/110)
|
60
|
+
* Pass along `remember_me` to `#auto_login` [#136](https://github.com/Sorcery/sorcery/pull/136)
|
61
|
+
* Respect SessionTimeout on login via RememberMe [#102](https://github.com/Sorcery/sorcery/pull/102)
|
62
|
+
* Added `demodulize` on authentication class name association name fetch [#147](https://github.com/Sorcery/sorcery/pull/147)
|
63
|
+
* Remove Gemnasium badge [#140](https://github.com/Sorcery/sorcery/pull/140)
|
64
|
+
* Add Instragram provider [#51](https://github.com/Sorcery/sorcery/pull/51)
|
65
|
+
* Remove `publish_actions` permission for facebook [#139](https://github.com/Sorcery/sorcery/pull/139)
|
66
|
+
* Prepare for 1.0.0 [#157](https://github.com/Sorcery/sorcery/pull/157)
|
67
|
+
* Add Auth0 provider [#160](https://github.com/Sorcery/sorcery/pull/160)
|
68
|
+
|
69
|
+
## 0.12.0
|
70
|
+
|
71
|
+
* Fix magic_login not inheriting from migration_class_name [#99](https://github.com/Sorcery/sorcery/pull/99)
|
72
|
+
* Update YARD dependency [#100](https://github.com/Sorcery/sorcery/pull/100)
|
73
|
+
* Make `#update_attributes` behave like `#update` [#98](https://github.com/Sorcery/sorcery/pull/98)
|
74
|
+
* Add tests to the magic login submodule [#95](https://github.com/Sorcery/sorcery/pull/95)
|
75
|
+
* Set user.stretches to 1 in test env by default [#81](https://github.com/Sorcery/sorcery/pull/81)
|
76
|
+
* Allow user to be loaded from other source when session expires. fix #89 [#94](https://github.com/Sorcery/sorcery/pull/94)
|
77
|
+
* Added a new ArgumentError for not defined user_class in config [#82](https://github.com/Sorcery/sorcery/pull/82)
|
78
|
+
* Updated Required Ruby version to 2.2 [#85](https://github.com/Sorcery/sorcery/pull/85)
|
79
|
+
* Add configuration for token randomness [#67](https://github.com/Sorcery/sorcery/pull/67)
|
80
|
+
* Add facebook user_info_path option to initializer.rb [#63](https://github.com/Sorcery/sorcery/pull/63)
|
81
|
+
* Add new function: `build_from` (allows building a user instance from OAuth without saving) [#54](https://github.com/Sorcery/sorcery/pull/54)
|
82
|
+
* Add rubocop configuration and TODO list [#107](https://github.com/Sorcery/sorcery/pull/107)
|
83
|
+
* Add support for VK OAuth (thanks to @Hirurg103) [#109](https://github.com/Sorcery/sorcery/pull/109)
|
84
|
+
* Fix token leak via referrer header [#56](https://github.com/Sorcery/sorcery/pull/56)
|
85
|
+
* Add `login_user` helper for request specs [#57](https://github.com/Sorcery/sorcery/pull/57)
|
86
|
+
|
4
87
|
## 0.11.0
|
5
88
|
|
6
89
|
* Refer to User before calling remove_const to avoid NameError [#58](https://github.com/Sorcery/sorcery/pull/58)
|
7
90
|
* Resurrect block authentication, showing auth failure reason. [#41](https://github.com/Sorcery/sorcery/pull/41)
|
8
91
|
* Add github scope option to initializer.rb [#50](https://github.com/Sorcery/sorcery/pull/50)
|
92
|
+
* Fix Facebook being broken due to API deprecation [#53](https://github.com/Sorcery/sorcery/pull/53)
|
9
93
|
|
10
94
|
## 0.10.3
|
11
95
|
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# The Sorcery Community Code of Conduct
|
2
|
+
|
3
|
+
This document provides a few simple community guidelines for a safe, respectful,
|
4
|
+
productive, and collaborative place for any person who is willing to contribute
|
5
|
+
to the Sorcery community. It applies to all "collaborative spaces", which are
|
6
|
+
defined as community communications channels (such as mailing lists, submitted
|
7
|
+
patches, commit comments, etc.).
|
8
|
+
|
9
|
+
* Participants will be tolerant of opposing views.
|
10
|
+
* Participants must ensure that their language and actions are free of personal
|
11
|
+
attacks and disparaging personal remarks.
|
12
|
+
* When interpreting the words and actions of others, participants should always
|
13
|
+
assume good intentions.
|
14
|
+
* Behaviour which can be reasonably considered harassment will not be tolerated.
|
data/Gemfile
CHANGED
data/{LICENSE.txt → LICENSE.md}
RENAMED