sorcery 0.11.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +5 -5
  2. data/.github/FUNDING.yml +1 -0
  3. data/.github/ISSUE_TEMPLATE.md +20 -0
  4. data/.github/PULL_REQUEST_TEMPLATE.md +5 -0
  5. data/.github/workflows/ruby.yml +49 -0
  6. data/.rubocop.yml +55 -0
  7. data/.rubocop_todo.yml +163 -0
  8. data/CHANGELOG.md +84 -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 -8
  13. data/Rakefile +3 -1
  14. data/SECURITY.md +19 -0
  15. data/gemfiles/rails_52.gemfile +7 -0
  16. data/gemfiles/rails_60.gemfile +7 -0
  17. data/lib/generators/sorcery/USAGE +1 -1
  18. data/lib/generators/sorcery/helpers.rb +4 -0
  19. data/lib/generators/sorcery/install_generator.rb +21 -21
  20. data/lib/generators/sorcery/templates/initializer.rb +176 -69
  21. data/lib/generators/sorcery/templates/migration/activity_logging.rb +5 -5
  22. data/lib/generators/sorcery/templates/migration/brute_force_protection.rb +4 -4
  23. data/lib/generators/sorcery/templates/migration/core.rb +4 -4
  24. data/lib/generators/sorcery/templates/migration/external.rb +3 -3
  25. data/lib/generators/sorcery/templates/migration/magic_login.rb +9 -0
  26. data/lib/generators/sorcery/templates/migration/remember_me.rb +3 -3
  27. data/lib/generators/sorcery/templates/migration/reset_password.rb +5 -4
  28. data/lib/generators/sorcery/templates/migration/user_activation.rb +4 -4
  29. data/lib/sorcery.rb +2 -0
  30. data/lib/sorcery/adapters/active_record_adapter.rb +4 -3
  31. data/lib/sorcery/adapters/mongoid_adapter.rb +23 -11
  32. data/lib/sorcery/controller.rb +26 -15
  33. data/lib/sorcery/controller/config.rb +7 -5
  34. data/lib/sorcery/controller/submodules/activity_logging.rb +9 -3
  35. data/lib/sorcery/controller/submodules/external.rb +49 -33
  36. data/lib/sorcery/controller/submodules/http_basic_auth.rb +2 -0
  37. data/lib/sorcery/controller/submodules/remember_me.rb +3 -8
  38. data/lib/sorcery/controller/submodules/session_timeout.rb +28 -5
  39. data/lib/sorcery/crypto_providers/aes256.rb +2 -1
  40. data/lib/sorcery/crypto_providers/bcrypt.rb +8 -2
  41. data/lib/sorcery/engine.rb +16 -3
  42. data/lib/sorcery/model.rb +14 -10
  43. data/lib/sorcery/model/config.rb +12 -4
  44. data/lib/sorcery/model/submodules/brute_force_protection.rb +6 -7
  45. data/lib/sorcery/model/submodules/external.rb +19 -3
  46. data/lib/sorcery/model/submodules/magic_login.rb +130 -0
  47. data/lib/sorcery/model/submodules/reset_password.rb +25 -2
  48. data/lib/sorcery/model/submodules/user_activation.rb +1 -1
  49. data/lib/sorcery/model/temporary_token.rb +3 -1
  50. data/lib/sorcery/protocols/oauth.rb +1 -0
  51. data/lib/sorcery/providers/auth0.rb +46 -0
  52. data/lib/sorcery/providers/battlenet.rb +51 -0
  53. data/lib/sorcery/providers/discord.rb +52 -0
  54. data/lib/sorcery/providers/heroku.rb +1 -0
  55. data/lib/sorcery/providers/instagram.rb +73 -0
  56. data/lib/sorcery/providers/line.rb +63 -0
  57. data/lib/sorcery/providers/linkedin.rb +45 -36
  58. data/lib/sorcery/providers/vk.rb +5 -4
  59. data/lib/sorcery/providers/wechat.rb +8 -6
  60. data/lib/sorcery/test_helpers/internal.rb +5 -4
  61. data/lib/sorcery/test_helpers/internal/rails.rb +11 -11
  62. data/lib/sorcery/test_helpers/rails/request.rb +20 -0
  63. data/lib/sorcery/version.rb +1 -1
  64. data/sorcery.gemspec +27 -11
  65. data/spec/active_record/user_activation_spec.rb +2 -2
  66. data/spec/active_record/user_activity_logging_spec.rb +2 -2
  67. data/spec/active_record/user_brute_force_protection_spec.rb +2 -2
  68. data/spec/active_record/user_magic_login_spec.rb +15 -0
  69. data/spec/active_record/user_oauth_spec.rb +2 -2
  70. data/spec/active_record/user_remember_me_spec.rb +2 -2
  71. data/spec/active_record/user_reset_password_spec.rb +2 -2
  72. data/spec/active_record/user_spec.rb +0 -10
  73. data/spec/controllers/controller_http_basic_auth_spec.rb +1 -1
  74. data/spec/controllers/controller_oauth2_spec.rb +230 -123
  75. data/spec/controllers/controller_oauth_spec.rb +13 -7
  76. data/spec/controllers/controller_remember_me_spec.rb +16 -8
  77. data/spec/controllers/controller_session_timeout_spec.rb +90 -3
  78. data/spec/controllers/controller_spec.rb +13 -3
  79. data/spec/orm/active_record.rb +2 -2
  80. data/spec/providers/example_provider_spec.rb +17 -0
  81. data/spec/providers/example_spec.rb +17 -0
  82. data/spec/providers/vk_spec.rb +42 -0
  83. data/spec/rails_app/app/assets/config/manifest.js +1 -0
  84. data/spec/rails_app/app/controllers/application_controller.rb +2 -0
  85. data/spec/rails_app/app/controllers/sorcery_controller.rb +152 -33
  86. data/spec/rails_app/app/mailers/sorcery_mailer.rb +7 -0
  87. data/spec/rails_app/app/views/sorcery_mailer/magic_login_email.html.erb +13 -0
  88. data/spec/rails_app/app/views/sorcery_mailer/magic_login_email.text.erb +6 -0
  89. data/spec/rails_app/config/application.rb +8 -3
  90. data/spec/rails_app/config/boot.rb +1 -1
  91. data/spec/rails_app/config/environment.rb +1 -1
  92. data/spec/rails_app/config/routes.rb +17 -0
  93. data/spec/rails_app/config/secrets.yml +4 -0
  94. data/spec/rails_app/db/migrate/activity_logging/20101224223624_add_activity_logging_to_users.rb +2 -2
  95. data/spec/rails_app/db/migrate/invalidate_active_sessions/20180221093235_add_invalidate_active_sessions_before_to_users.rb +9 -0
  96. data/spec/rails_app/db/migrate/magic_login/20170924151831_add_magic_login_to_users.rb +17 -0
  97. data/spec/rails_app/db/migrate/reset_password/20101224223622_add_reset_password_to_users.rb +2 -0
  98. data/spec/rails_app/db/schema.rb +7 -9
  99. data/spec/shared_examples/user_magic_login_shared_examples.rb +150 -0
  100. data/spec/shared_examples/user_oauth_shared_examples.rb +1 -1
  101. data/spec/shared_examples/user_remember_me_shared_examples.rb +1 -1
  102. data/spec/shared_examples/user_reset_password_shared_examples.rb +37 -5
  103. data/spec/shared_examples/user_shared_examples.rb +104 -43
  104. data/spec/sorcery_crypto_providers_spec.rb +61 -1
  105. data/spec/sorcery_temporary_token_spec.rb +27 -0
  106. data/spec/spec.opts +1 -1
  107. data/spec/spec_helper.rb +2 -2
  108. data/spec/support/migration_helper.rb +29 -0
  109. data/spec/support/providers/example.rb +11 -0
  110. data/spec/support/providers/example_provider.rb +11 -0
  111. metadata +97 -34
  112. data/.travis.yml +0 -57
  113. data/gemfiles/active_record-rails40.gemfile +0 -7
  114. data/gemfiles/active_record-rails41.gemfile +0 -7
  115. data/gemfiles/active_record-rails42.gemfile +0 -7
  116. 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: 0f0614713fb5b564c7273b8f08b71547414613303b574156932f415dee83286e
4
+ data.tar.gz: aa2b3081950f5c5f4615dbb21f535fa90ade9a600b29a9d41e3449bdd8551c58
5
5
  SHA512:
6
- metadata.gz: c557af8ef3828be476750ba465ea4d3c7a34f5ccbf975c5c731d0841891de4f77d56fa867dfd55be9424a2eea0eed768cdfe1a104e6ed70ae643207bb2573eb1
7
- data.tar.gz: 582ea847785099a70c4866feee1b1f891a411e4f572ff89497ac353914cffe78669102d8a7a6b76c208976894ca932f83e61e590645306e7b5a9c3ebc6868bc2
6
+ metadata.gz: 781c5dd4d01ab49353464f4e8eb1f1990351f75e1acf307ef9fb83892e4304fd5a5876afa4b8091e4f4edad6661e1f6a4b6b226eb8cb1b290d0712e30826414b
7
+ data.tar.gz: 347e36c6b09f16eaa1028e8ae02eca140763d07c9981a74b867997994e32a968dcde6016b4b8aab61738ee5eaf463989775ae1c1d257bc561e20ec30ac7e4068
@@ -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,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,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
 
@@ -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
@@ -1,8 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~> 5.0.0'
3
+ gem 'pry'
4
+ gem 'rails'
4
5
  gem 'rails-controller-testing'
5
6
  gem 'sqlite3'
6
- gem 'pry'
7
7
 
8
8
  gemspec
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Noam Ben-Ari <mailto:nbenari@gmail.com>
1
+ Copyright (c) 2010 [Noam Ben-Ari](mailto:nbenari@gmail.com)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the