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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/sorcery/controller/submodules/external.rb +1 -1
- data/lib/sorcery/controller.rb +1 -1
- data/lib/sorcery/version.rb +1 -1
- data/sorcery.gemspec +1 -1
- metadata +5 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebeaecab44b52bef2e5f573c2fbf08e4e03d2f50ef96f3ce27a70002e145f50b
|
4
|
+
data.tar.gz: 5c9fb4fb3792b3a0b2700fd438c730328d769b4223daccd6f4fea36bdaad68c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/sorcery/controller.rb
CHANGED
@@ -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
|
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
|
data/lib/sorcery/version.rb
CHANGED
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', '~>
|
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.
|
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-
|
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: '
|
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: '
|
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.
|
388
|
+
rubygems_version: 3.1.4
|
395
389
|
signing_key:
|
396
390
|
specification_version: 4
|
397
391
|
summary: Magical authentication for Rails applications
|