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: ad886e65fd13b81ceb33165b6108992890073e9069524d383ee45948f64a2b17
4
- data.tar.gz: c1aaff72cbf9031e456c8f022845ce680799a1eadf6ec6ef171357bd1064f1fd
3
+ metadata.gz: 87cffdb0b8767c7cb1a254e74fd4c7b3ce5f4b92a8502538b9c09ee6a68915af
4
+ data.tar.gz: 050c8765bb944400e148a4d981371d4a560cb2295d47036e45d57cfa64914aae
5
5
  SHA512:
6
- metadata.gz: '08aa15acd68b90ebb2dadab4f50a3718a71a13a9fe7a6b6c3f628dfee1ffe85e8c10ac98217ff1b8c33e8afaacbf4ec392043c5ac6b3d27e5516ed5070bf5956'
7
- data.tar.gz: 1ed88f7c7b84daa5bd95c71ebba114a1bda3e0a1985e4187854113db3f3c2454ac62451e7d581ccfd41de4419eadf64008a920cc540963e6c5a73561351f238f
6
+ metadata.gz: 0e90c44c55b03ab497357b6d3abfc3d8652ff53b88e41556733e2f30584b13f64bd0cca9721f0127c12f0c08a3676668c9a2164c5805c8db6cad375d94f72d2e
7
+ data.tar.gz: 51f41fa2dc0d4f26104f6a96a656bde761d9df1754001b645cad625f44657f44b7d54cc17a48c9b4dbf6fc53c294f716fe08de9a80bb7a748f78c4a798933542
@@ -2,6 +2,13 @@
2
2
 
3
3
  No changes yet.
4
4
 
5
+ ## v1.6.3 (2019-09-24)
6
+
7
+ ### Changes
8
+
9
+ - [#81] Allow silent authentication without user consent (thanks to @jarosan)
10
+ - Don't support Doorkeeper >= 5.2 due to breaking changes
11
+
5
12
  ## v1.6.2 (2019-08-09)
6
13
 
7
14
  ### Bugfixes
@@ -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 unless matching_tokens_for_oidc_resource_owner(owner).present?
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
@@ -1,5 +1,5 @@
1
1
  module Doorkeeper
2
2
  module OpenidConnect
3
- VERSION = '1.6.2'.freeze
3
+ VERSION = '1.6.3'.freeze
4
4
  end
5
5
  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.2
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-08-09 00:00:00.000000000 Z
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