sorcery 0.16.3 → 0.16.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2d091c4af06b65d0b8640aa1664cc03370f0859a0d37ccca2865813a41956ec
4
- data.tar.gz: c60ee8af595868a99ddced5363716f6593f494bb82e97a82d35769b4a1c223e4
3
+ metadata.gz: ebeaecab44b52bef2e5f573c2fbf08e4e03d2f50ef96f3ce27a70002e145f50b
4
+ data.tar.gz: 5c9fb4fb3792b3a0b2700fd438c730328d769b4223daccd6f4fea36bdaad68c3
5
5
  SHA512:
6
- metadata.gz: 24281e4ee0082665b792c467fbc9f7e70a6d3f26492a66de179248b6d3c97dcabf2aa3058e44239961ffa01645708883d22e097ac28dfc2b64e38ef2743a03c3
7
- data.tar.gz: 55c173b3a0ea39d8067bb26b737e57548fb67357c0969d1eb08290c8876294157f2ca7c17888874d208d88fe893840b4046bf3463c1ead9fa16c15358a9d5668
6
+ metadata.gz: fed510d0cb545bb01bd1f9cdb7d6a79f129e977019355d41a1656d3f02f3130880d177e302b63a57f5e13ca1f15764bb3189f9e5df1aa20a9db58c4dd98dc551
7
+ data.tar.gz: 525e7f3f4ec290b71bfc7a39d2fa82a0213c7aaf99ce0005794eef266643a3db0dc105cb0580a766c7387375ff1633e26bb1506fd8389ed852c7f39451614dbc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
  ## HEAD
3
3
 
4
+ ## 0.16.4
5
+
6
+ * Adapt to open request protection strategy of rails 7.0 [#318](https://github.com/Sorcery/sorcery/pull/318)
7
+ * Update OAuth2 gem to v2 per v1 deprecation [#323](https://github.com/Sorcery/sorcery/pull/323)
8
+ * Fixed typo in error message [#310](https://github.com/Sorcery/sorcery/pull/310)
9
+
4
10
  ## 0.16.3
5
11
 
6
12
  * Fix provider instantiation for plural provider names (eg. okta) [#305](https://github.com/Sorcery/sorcery/pull/305)
@@ -118,7 +118,7 @@ module Sorcery
118
118
  # sends user to authenticate at the provider's website.
119
119
  # after authentication the user is redirected to the callback defined in the provider config
120
120
  def login_at(provider_name, args = {})
121
- redirect_to sorcery_login_url(provider_name, args)
121
+ redirect_to sorcery_login_url(provider_name, args), allow_other_host: true
122
122
  end
123
123
 
124
124
  # tries to login the user from provider's callback
@@ -165,7 +165,7 @@ module Sorcery
165
165
  def user_class
166
166
  @user_class ||= Config.user_class.to_s.constantize
167
167
  rescue NameError
168
- raise ArgumentError, 'You have incorrectly defined user_class or have forgotten to define it in intitializer file (config.user_class = \'User\').'
168
+ raise ArgumentError, 'You have incorrectly defined user_class or have forgotten to define it in the initializer file (config.user_class = \'User\').'
169
169
  end
170
170
  end
171
171
  end
@@ -1,3 +1,3 @@
1
1
  module Sorcery
2
- VERSION = '0.16.3'.freeze
2
+ VERSION = '0.16.4'.freeze
3
3
  end
data/sorcery.gemspec CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
35
35
 
36
36
  s.add_dependency 'bcrypt', '~> 3.1'
37
37
  s.add_dependency 'oauth', '~> 0.5', '>= 0.5.5'
38
- s.add_dependency 'oauth2', '~> 1.0', '>= 0.8.0'
38
+ s.add_dependency 'oauth2', '~> 2.0'
39
39
 
40
40
  s.add_development_dependency 'byebug', '~> 10.0.0'
41
41
  s.add_development_dependency 'rspec-rails', '~> 3.7.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorcery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.3
4
+ version: 0.16.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noam Ben Ari
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2022-02-23 00:00:00.000000000 Z
15
+ date: 2022-10-04 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bcrypt
@@ -54,20 +54,14 @@ dependencies:
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: '1.0'
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 0.8.0
57
+ version: '2.0'
61
58
  type: :runtime
62
59
  prerelease: false
63
60
  version_requirements: !ruby/object:Gem::Requirement
64
61
  requirements:
65
62
  - - "~>"
66
63
  - !ruby/object:Gem::Version
67
- version: '1.0'
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- version: 0.8.0
64
+ version: '2.0'
71
65
  - !ruby/object:Gem::Dependency
72
66
  name: byebug
73
67
  requirement: !ruby/object:Gem::Requirement
@@ -391,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
391
385
  - !ruby/object:Gem::Version
392
386
  version: '0'
393
387
  requirements: []
394
- rubygems_version: 3.2.3
388
+ rubygems_version: 3.1.4
395
389
  signing_key:
396
390
  specification_version: 4
397
391
  summary: Magical authentication for Rails applications