sorcery 0.11.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +5 -5
  2. data/.github/ISSUE_TEMPLATE.md +20 -0
  3. data/.github/PULL_REQUEST_TEMPLATE.md +5 -0
  4. data/.github/workflows/ruby.yml +23 -0
  5. data/.rubocop.yml +55 -0
  6. data/.rubocop_todo.yml +155 -0
  7. data/.travis.yml +11 -51
  8. data/CHANGELOG.md +75 -0
  9. data/CODE_OF_CONDUCT.md +14 -0
  10. data/Gemfile +2 -2
  11. data/{LICENSE.txt → LICENSE.md} +1 -1
  12. data/README.md +34 -7
  13. data/SECURITY.md +18 -0
  14. data/gemfiles/rails_52.gemfile +7 -0
  15. data/gemfiles/rails_60.gemfile +7 -0
  16. data/lib/generators/sorcery/USAGE +1 -1
  17. data/lib/generators/sorcery/helpers.rb +4 -0
  18. data/lib/generators/sorcery/install_generator.rb +21 -21
  19. data/lib/generators/sorcery/templates/initializer.rb +176 -69
  20. data/lib/generators/sorcery/templates/migration/activity_logging.rb +5 -5
  21. data/lib/generators/sorcery/templates/migration/brute_force_protection.rb +4 -4
  22. data/lib/generators/sorcery/templates/migration/core.rb +4 -4
  23. data/lib/generators/sorcery/templates/migration/external.rb +3 -3
  24. data/lib/generators/sorcery/templates/migration/magic_login.rb +9 -0
  25. data/lib/generators/sorcery/templates/migration/remember_me.rb +3 -3
  26. data/lib/generators/sorcery/templates/migration/reset_password.rb +5 -4
  27. data/lib/generators/sorcery/templates/migration/user_activation.rb +4 -4
  28. data/lib/sorcery.rb +2 -0
  29. data/lib/sorcery/adapters/active_record_adapter.rb +4 -3
  30. data/lib/sorcery/adapters/mongoid_adapter.rb +23 -11
  31. data/lib/sorcery/controller.rb +26 -15
  32. data/lib/sorcery/controller/config.rb +7 -5
  33. data/lib/sorcery/controller/submodules/activity_logging.rb +9 -3
  34. data/lib/sorcery/controller/submodules/external.rb +52 -33
  35. data/lib/sorcery/controller/submodules/http_basic_auth.rb +2 -0
  36. data/lib/sorcery/controller/submodules/remember_me.rb +3 -8
  37. data/lib/sorcery/controller/submodules/session_timeout.rb +28 -5
  38. data/lib/sorcery/crypto_providers/aes256.rb +2 -1
  39. data/lib/sorcery/crypto_providers/bcrypt.rb +8 -2
  40. data/lib/sorcery/engine.rb +16 -3
  41. data/lib/sorcery/model.rb +14 -10
  42. data/lib/sorcery/model/config.rb +12 -4
  43. data/lib/sorcery/model/submodules/brute_force_protection.rb +6 -7
  44. data/lib/sorcery/model/submodules/external.rb +19 -3
  45. data/lib/sorcery/model/submodules/magic_login.rb +130 -0
  46. data/lib/sorcery/model/submodules/reset_password.rb +25 -2
  47. data/lib/sorcery/model/submodules/user_activation.rb +1 -1
  48. data/lib/sorcery/model/temporary_token.rb +3 -1
  49. data/lib/sorcery/protocols/oauth.rb +1 -0
  50. data/lib/sorcery/providers/auth0.rb +46 -0
  51. data/lib/sorcery/providers/battlenet.rb +51 -0
  52. data/lib/sorcery/providers/discord.rb +52 -0
  53. data/lib/sorcery/providers/heroku.rb +1 -0
  54. data/lib/sorcery/providers/instagram.rb +73 -0
  55. data/lib/sorcery/providers/line.rb +63 -0
  56. data/lib/sorcery/providers/linkedin.rb +45 -36
  57. data/lib/sorcery/providers/vk.rb +5 -4
  58. data/lib/sorcery/providers/wechat.rb +8 -6
  59. data/lib/sorcery/test_helpers/internal.rb +5 -4
  60. data/lib/sorcery/test_helpers/internal/rails.rb +11 -11
  61. data/lib/sorcery/test_helpers/rails/request.rb +20 -0
  62. data/lib/sorcery/version.rb +1 -1
  63. data/sorcery.gemspec +26 -10
  64. data/spec/active_record/user_activation_spec.rb +2 -2
  65. data/spec/active_record/user_activity_logging_spec.rb +2 -2
  66. data/spec/active_record/user_brute_force_protection_spec.rb +2 -2
  67. data/spec/active_record/user_magic_login_spec.rb +15 -0
  68. data/spec/active_record/user_oauth_spec.rb +2 -2
  69. data/spec/active_record/user_remember_me_spec.rb +2 -2
  70. data/spec/active_record/user_reset_password_spec.rb +2 -2
  71. data/spec/active_record/user_spec.rb +0 -10
  72. data/spec/controllers/controller_http_basic_auth_spec.rb +1 -1
  73. data/spec/controllers/controller_oauth2_spec.rb +230 -123
  74. data/spec/controllers/controller_oauth_spec.rb +13 -7
  75. data/spec/controllers/controller_remember_me_spec.rb +16 -8
  76. data/spec/controllers/controller_session_timeout_spec.rb +90 -3
  77. data/spec/controllers/controller_spec.rb +13 -3
  78. data/spec/orm/active_record.rb +2 -2
  79. data/spec/providers/example_provider_spec.rb +17 -0
  80. data/spec/providers/example_spec.rb +17 -0
  81. data/spec/providers/vk_spec.rb +42 -0
  82. data/spec/rails_app/app/assets/config/manifest.js +1 -0
  83. data/spec/rails_app/app/controllers/application_controller.rb +2 -0
  84. data/spec/rails_app/app/controllers/sorcery_controller.rb +152 -33
  85. data/spec/rails_app/app/mailers/sorcery_mailer.rb +7 -0
  86. data/spec/rails_app/app/views/sorcery_mailer/magic_login_email.html.erb +13 -0
  87. data/spec/rails_app/app/views/sorcery_mailer/magic_login_email.text.erb +6 -0
  88. data/spec/rails_app/config/application.rb +8 -3
  89. data/spec/rails_app/config/boot.rb +1 -1
  90. data/spec/rails_app/config/environment.rb +1 -1
  91. data/spec/rails_app/config/routes.rb +17 -0
  92. data/spec/rails_app/config/secrets.yml +4 -0
  93. data/spec/rails_app/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb +2 -2
  94. data/spec/rails_app/db/migrate/invalidate_active_sessions/20180221093235_add_invalidate_active_sessions_before_to_users.rb +9 -0
  95. data/spec/rails_app/db/migrate/magic_login/20170924151831_add_magic_login_to_users.rb +17 -0
  96. data/spec/rails_app/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb +2 -0
  97. data/spec/rails_app/db/schema.rb +7 -9
  98. data/spec/shared_examples/user_magic_login_shared_examples.rb +150 -0
  99. data/spec/shared_examples/user_oauth_shared_examples.rb +1 -1
  100. data/spec/shared_examples/user_remember_me_shared_examples.rb +1 -1
  101. data/spec/shared_examples/user_reset_password_shared_examples.rb +37 -5
  102. data/spec/shared_examples/user_shared_examples.rb +104 -43
  103. data/spec/sorcery_crypto_providers_spec.rb +61 -1
  104. data/spec/sorcery_temporary_token_spec.rb +27 -0
  105. data/spec/spec.opts +1 -1
  106. data/spec/spec_helper.rb +2 -2
  107. data/spec/support/migration_helper.rb +29 -0
  108. data/spec/support/providers/example.rb +11 -0
  109. data/spec/support/providers/example_provider.rb +11 -0
  110. metadata +92 -29
  111. data/gemfiles/active_record-rails40.gemfile +0 -7
  112. data/gemfiles/active_record-rails41.gemfile +0 -7
  113. data/gemfiles/active_record-rails42.gemfile +0 -7
  114. data/spec/rails_app/config/initializers/secret_token.rb +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bc71bccb13f8e3fcbbf0b94f660a98bc34cc4826
4
- data.tar.gz: 9c60fb5db29c7a41378e7c45234b0b0e9df47501
2
+ SHA256:
3
+ metadata.gz: 44ff0a756fa8a8379e9333f116a72be359847bd3f9611f643e2f2200180dd4f6
4
+ data.tar.gz: 8e4bcf9034cac0cac8eddaf296df1a64757272d99c9954e35f99f45d2c9d2836
5
5
  SHA512:
6
- metadata.gz: c557af8ef3828be476750ba465ea4d3c7a34f5ccbf975c5c731d0841891de4f77d56fa867dfd55be9424a2eea0eed768cdfe1a104e6ed70ae643207bb2573eb1
7
- data.tar.gz: 582ea847785099a70c4866feee1b1f891a411e4f572ff89497ac353914cffe78669102d8a7a6b76c208976894ca932f83e61e590645306e7b5a9c3ebc6868bc2
6
+ metadata.gz: e6ef63584276452138f36a8cc1f22928d79f9e5998d4ade707c116e825f63e114a8219a5157c13508116caf4a7b46e08670b34b0ee7ea2e84e673f5f68e1f092
7
+ data.tar.gz: f5d3599a90e6a50896d19c67434e9ac9cf250f8357685d48426745da7bd210e8b3238a6b026243b5ea045f83c973914f505a77c000004b50ba40d721a51eb182
@@ -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,5 @@
1
+ Please ensure your pull request includes the following:
2
+
3
+ - [ ] Description of changes
4
+ - [ ] Update to CHANGELOG.md with short description and link to pull request
5
+ - [ ] Changes have related RSpec tests that ensure functionality does not break
@@ -0,0 +1,23 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ test:
11
+
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: 2.6
20
+ - name: Install dependencies
21
+ run: bundle install
22
+ - name: Run tests
23
+ run: bundle exec rake
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,155 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2021-01-02 07:53:19 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: 2
151
+ # Cop supports --auto-correct.
152
+ Style/UnpackFirst:
153
+ Exclude:
154
+ - 'lib/sorcery/crypto_providers/aes256.rb'
155
+ - 'spec/sorcery_crypto_providers_spec.rb'
data/.travis.yml CHANGED
@@ -1,57 +1,17 @@
1
1
  language: ruby
2
- rvm:
3
- - jruby
4
- - 2.0.0
5
- - 2.1.10
6
- - 2.2.6
7
- - 2.3.3
8
- - 2.4.0
2
+ cache: bundler
9
3
 
10
- env:
11
- global:
12
- - JRUBY_OPTS="--2.0"
4
+ rvm:
5
+ - 2.4.9
6
+ - 2.5.7
7
+ - 2.6.5
8
+ - 2.7.1
13
9
 
14
10
  gemfile:
15
- - Gemfile
16
- - gemfiles/active_record-rails40.gemfile
17
- - gemfiles/active_record-rails41.gemfile
18
- - gemfiles/active_record-rails42.gemfile
19
-
20
- before_script:
21
- - mysql -e 'create database sorcery_test;'
22
-
23
- before_install:
24
- - rvm get stable --auto-dotfiles
25
- - gem update bundler
26
-
27
- matrix:
28
- allow_failures:
29
- - rvm: jruby
11
+ - gemfiles/rails_52.gemfile
12
+ - gemfiles/rails_60.gemfile
30
13
 
14
+ jobs:
31
15
  exclude:
32
- - rvm: 2.0.0
33
- gemfile: gemfiles/active_record-rails42.gemfile
34
-
35
- - rvm: 2.0.0
36
- gemfile: Gemfile
37
-
38
- - rvm: 2.1.10
39
- gemfile: Gemfile
40
-
41
- - rvm: 2.2.6
42
- gemfile: gemfiles/active_record-rails40.gemfile
43
-
44
- - rvm: 2.3.3
45
- gemfile: gemfiles/active_record-rails40.gemfile
46
-
47
- - rvm: 2.4.0
48
- gemfile: gemfiles/active_record-rails40.gemfile
49
-
50
- - rvm: 2.4.0
51
- gemfile: gemfiles/active_record-rails41.gemfile
52
-
53
- - rvm: 2.4.0
54
- gemfile: gemfiles/active_record-rails42.gemfile
55
-
56
- - rvm: jruby
57
- gemfile: Gemfile
16
+ - rvm: 2.4.9
17
+ gemfile: gemfiles/rails_60.gemfile
data/CHANGELOG.md CHANGED
@@ -1,11 +1,86 @@
1
1
  # Changelog
2
2
  ## HEAD
3
3
 
4
+ ## 0.16.0
5
+
6
+ * Add BattleNet Provider [#260](https://github.com/Sorcery/sorcery/pull/260)
7
+ * Fix failing isolated tests [#249](https://github.com/Sorcery/sorcery/pull/249)
8
+ * Support LINE login v2.1 [#251](https://github.com/Sorcery/sorcery/pull/251)
9
+ * Update generators to better support namespaces [#237](https://github.com/Sorcery/sorcery/pull/237)
10
+ * Add support for Rails 6 [#238](https://github.com/Sorcery/sorcery/pull/238)
11
+ * Fix ruby 2.7 deprecation warnings [#241](https://github.com/Sorcery/sorcery/pull/241)
12
+ * Use set to ensure unique arrays [#233](https://github.com/Sorcery/sorcery/pull/233)
13
+
14
+ ## 0.15.0
15
+
16
+ * Fix brute force vuln due to callbacks no being ran [#235](https://github.com/Sorcery/sorcery/pull/235)
17
+ * Revert on_load change due to breaking existing applications [#234](https://github.com/Sorcery/sorcery/pull/234)
18
+ * Add forget_me! and force_forget_me! test cases [#216](https://github.com/Sorcery/sorcery/pull/216)
19
+ * In `generic_send_email`, check responds_to [#211](https://github.com/Sorcery/sorcery/pull/211)
20
+ * Fix typo [#219](https://github.com/Sorcery/sorcery/pull/219)
21
+ * Fix deprecation warnings in Rails 6 [#209](https://github.com/Sorcery/sorcery/pull/209)
22
+ * Add ruby 2.6.5 to the travis build [#215](https://github.com/Sorcery/sorcery/pull/215)
23
+ * Add discord provider [#185](https://github.com/Sorcery/sorcery/pull/185)
24
+ * Remove MySQL database creation call [#214](https://github.com/Sorcery/sorcery/pull/214)
25
+ * Use id instead of uid for VK provider [#199](https://github.com/Sorcery/sorcery/pull/199)
26
+ * Don't :return_t JSON requests after login [#197](https://github.com/Sorcery/sorcery/pull/197)
27
+ * Fix email scope for LinkedIn Provider [#191](https://github.com/Sorcery/sorcery/pull/191)
28
+ * Ignore cookies when undefined cookies [#187](https://github.com/Sorcery/sorcery/pull/187)
29
+ * Allow for custom providers with multi-word class names. [#190](https://github.com/Sorcery/sorcery/pull/190)
30
+
31
+ ## 0.14.0
32
+
33
+ * Update LinkedIn to use OAuth 2 [#189](https://github.com/Sorcery/sorcery/pull/189)
34
+ * Support the LINE login auth [#80](https://github.com/Sorcery/sorcery/pull/80)
35
+ * Allow BCrypt to have app-specific secret token [#173](https://github.com/Sorcery/sorcery/pull/173)
36
+ * Add #change_password method to reset_password module. [#165](https://github.com/Sorcery/sorcery/pull/165)
37
+ * Clean up initializer comments [#153](https://github.com/Sorcery/sorcery/pull/153)
38
+ * Allow load_from_magic_login_token to accept a block [#152](https://github.com/Sorcery/sorcery/pull/152)
39
+ * Fix CipherError class name [#142](https://github.com/Sorcery/sorcery/pull/142)
40
+ * Fix `update_failed_logins_count` being called twice when login failed [#163](https://github.com/Sorcery/sorcery/pull/163)
41
+ * Update migration templates to use new hash syntax [#170](https://github.com/Sorcery/sorcery/pull/170)
42
+ * Support for Rails 4.2 and lower soft-dropped [#171](https://github.com/Sorcery/sorcery/pull/171)
43
+
44
+ ## 0.13.0
45
+
46
+ * Add support for Rails 5.2 / Ruby 2.5 [#129](https://github.com/Sorcery/sorcery/pull/129)
47
+ * Fix migration files not being generated [#128](https://github.com/Sorcery/sorcery/pull/128)
48
+ * 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)
49
+ * Update activation email to use after_commit callback [#130](https://github.com/Sorcery/sorcery/pull/130)
50
+ * Add opt-in `invalidate_active_sessions!` method [#110](https://github.com/Sorcery/sorcery/pull/110)
51
+ * Pass along `remember_me` to `#auto_login` [#136](https://github.com/Sorcery/sorcery/pull/136)
52
+ * Respect SessionTimeout on login via RememberMe [#102](https://github.com/Sorcery/sorcery/pull/102)
53
+ * Added `demodulize` on authentication class name association name fetch [#147](https://github.com/Sorcery/sorcery/pull/147)
54
+ * Remove Gemnasium badge [#140](https://github.com/Sorcery/sorcery/pull/140)
55
+ * Add Instragram provider [#51](https://github.com/Sorcery/sorcery/pull/51)
56
+ * Remove `publish_actions` permission for facebook [#139](https://github.com/Sorcery/sorcery/pull/139)
57
+ * Prepare for 1.0.0 [#157](https://github.com/Sorcery/sorcery/pull/157)
58
+ * Add Auth0 provider [#160](https://github.com/Sorcery/sorcery/pull/160)
59
+
60
+ ## 0.12.0
61
+
62
+ * Fix magic_login not inheriting from migration_class_name [#99](https://github.com/Sorcery/sorcery/pull/99)
63
+ * Update YARD dependency [#100](https://github.com/Sorcery/sorcery/pull/100)
64
+ * Make `#update_attributes` behave like `#update` [#98](https://github.com/Sorcery/sorcery/pull/98)
65
+ * Add tests to the magic login submodule [#95](https://github.com/Sorcery/sorcery/pull/95)
66
+ * Set user.stretches to 1 in test env by default [#81](https://github.com/Sorcery/sorcery/pull/81)
67
+ * Allow user to be loaded from other source when session expires. fix #89 [#94](https://github.com/Sorcery/sorcery/pull/94)
68
+ * Added a new ArgumentError for not defined user_class in config [#82](https://github.com/Sorcery/sorcery/pull/82)
69
+ * Updated Required Ruby version to 2.2 [#85](https://github.com/Sorcery/sorcery/pull/85)
70
+ * Add configuration for token randomness [#67](https://github.com/Sorcery/sorcery/pull/67)
71
+ * Add facebook user_info_path option to initializer.rb [#63](https://github.com/Sorcery/sorcery/pull/63)
72
+ * Add new function: `build_from` (allows building a user instance from OAuth without saving) [#54](https://github.com/Sorcery/sorcery/pull/54)
73
+ * Add rubocop configuration and TODO list [#107](https://github.com/Sorcery/sorcery/pull/107)
74
+ * Add support for VK OAuth (thanks to @Hirurg103) [#109](https://github.com/Sorcery/sorcery/pull/109)
75
+ * Fix token leak via referrer header [#56](https://github.com/Sorcery/sorcery/pull/56)
76
+ * Add `login_user` helper for request specs [#57](https://github.com/Sorcery/sorcery/pull/57)
77
+
4
78
  ## 0.11.0
5
79
 
6
80
  * Refer to User before calling remove_const to avoid NameError [#58](https://github.com/Sorcery/sorcery/pull/58)
7
81
  * Resurrect block authentication, showing auth failure reason. [#41](https://github.com/Sorcery/sorcery/pull/41)
8
82
  * Add github scope option to initializer.rb [#50](https://github.com/Sorcery/sorcery/pull/50)
83
+ * Fix Facebook being broken due to API deprecation [#53](https://github.com/Sorcery/sorcery/pull/53)
9
84
 
10
85
  ## 0.10.3
11
86
 
@@ -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.