doorkeeper-openid_connect 1.6.2 → 1.6.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87cffdb0b8767c7cb1a254e74fd4c7b3ce5f4b92a8502538b9c09ee6a68915af
|
4
|
+
data.tar.gz: 050c8765bb944400e148a4d981371d4a560cb2295d47036e45d57cfa64914aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e90c44c55b03ab497357b6d3abfc3d8652ff53b88e41556733e2f30584b13f64bd0cca9721f0127c12f0c08a3676668c9a2164c5805c8db6cad375d94f72d2e
|
7
|
+
data.tar.gz: 51f41fa2dc0d4f26104f6a96a656bde761d9df1754001b645cad625f44657f44b7d54cc17a48c9b4dbf6fc53c294f716fe08de9a80bb7a748f78c4a798933542
|
data/CHANGELOG.md
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.required_ruby_version = ">= 2.3"
|
21
21
|
|
22
|
-
spec.add_runtime_dependency 'doorkeeper', '>= 5.0'
|
22
|
+
spec.add_runtime_dependency 'doorkeeper', '>= 5.0', '< 5.2'
|
23
23
|
spec.add_runtime_dependency 'json-jwt', '~> 1.6'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'rspec-rails'
|
@@ -56,7 +56,7 @@ module Doorkeeper
|
|
56
56
|
when 'none' then
|
57
57
|
raise Errors::InvalidRequest if (prompt_values - [ 'none' ]).any?
|
58
58
|
raise Errors::LoginRequired unless owner
|
59
|
-
raise Errors::ConsentRequired
|
59
|
+
raise Errors::ConsentRequired if oidc_consent_required?(owner)
|
60
60
|
when 'login' then
|
61
61
|
reauthenticate_oidc_resource_owner(owner) if owner
|
62
62
|
when 'consent' then
|
@@ -100,6 +100,11 @@ module Doorkeeper
|
|
100
100
|
Doorkeeper::AccessToken.scopes_match?(token.scopes, pre_auth.scopes, pre_auth.client.scopes)
|
101
101
|
end
|
102
102
|
end
|
103
|
+
|
104
|
+
def oidc_consent_required?(owner)
|
105
|
+
return false if skip_authorization?
|
106
|
+
matching_tokens_for_oidc_resource_owner(owner).blank?
|
107
|
+
end
|
103
108
|
end
|
104
109
|
end
|
105
110
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doorkeeper-openid_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Dengler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: doorkeeper
|
@@ -18,6 +18,9 @@ dependencies:
|
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '5.0'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '5.2'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,6 +28,9 @@ dependencies:
|
|
25
28
|
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '5.0'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.2'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: json-jwt
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|