doorkeeper-openid_connect 1.8.4 → 1.8.6

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: 981e1ef7a0f2f47cf63c8824c7cdfa802127f291a54836cb3a20e39b1bcd7ca9
4
- data.tar.gz: 95b4e9a230daaebeee5df8d251a78921fe85178bbd656b7acd868afbb0871c83
3
+ metadata.gz: 98833fbf062bc69c7ef33bfe11ca1c8c1334fb8aa993429760d6d3dd25cc5567
4
+ data.tar.gz: 2c673aa37b13f56db56d27ba6cd876650e45fd9305061f3c2b45ddc9c5f9f891
5
5
  SHA512:
6
- metadata.gz: 569d7fcb3e77e8e77f2e3a2abe6b02c6664416e136e30fecc2c78462c74a87b936ec9b1d665d90c062db4b5ce2078ec26a93b938912b2e97dc6ebbb7c93ac94d
7
- data.tar.gz: 60df7a49cef6ee6ff57efc4b9fc775053d0406015a9dc3fac0455d6177f86dcf98b8d6384204fc54033c2b4bb82a8947808e960543c47c1cceba1796035a5e63
6
+ metadata.gz: 4feff9d2c441fb4efc5abbba40a611c2ee198b52d4efef02bb6ce0a27557b0757f2d09d7be513b3e0118845c24371ec6b323faaad10222b007f1df864625a9f8
7
+ data.tar.gz: b9cc421be62fdb8c03f4d9af89ed06c175b21af40e300a9a24b25e825fe643f6b3bf6e97eeec6336fc5554165be26e10c1f7b4d8870474a636c08ae581be39c6
data/CHANGELOG.md CHANGED
@@ -1,16 +1,29 @@
1
1
  ## Unreleased
2
2
 
3
3
  - [#PR ID] Add your changelog entry here.
4
- - [#185] Don't call active_record_options for Doorkeeper >= 5.6.3.
5
- - [#183] stop render consent screen when user is not logged-in.
6
4
 
7
- ## v1.8.3 (2022-12-02)
5
+ ## v1.8.6 (2023-05-12)
6
+
7
+ - [#194] Default to RFC 7638 kid fingerprint generation (thanks to @stanhu).
8
+
9
+ ## v1.8.5 (2023-02-02)
10
+
11
+ - [#186] Simplify gem configuration reusing Doorkeeper configuration option DSL (thanks to @nbulaj).
12
+ - [#182] Drop support for Ruby 2.6 and Rails 5 (thanks to @sato11).
13
+ - [#188] Fix dookeeper-jwt compatibility (thanks to @zavan).
8
14
 
9
- - [#180] Add PKCE support to OpenID discovery endpoint.
15
+ ## v1.8.4 (2023-02-01)
10
16
 
11
- ## Unreleased next
17
+ Note that v1.8.4 changed the default kid fingerprint generation from RFC 7638 to a format
18
+ based on the SHA256 digest of the key element. To restore the previous behavior, upgrade to v1.8.6.
19
+
20
+ - [#177] Replace `json-jwt` with `ruby-jwt` to align with doorkeeper-jwt (thanks to @kristof-mattei).
21
+ - [#185] Don't call active_record_options for Doorkeeper >= 5.6.3 (thanks to @zavan).
22
+ - [#183] Stop render consent screen when user is not logged-in (thanks to @nov).
23
+
24
+ ## v1.8.3 (2022-12-02)
12
25
 
13
- - [#177] Replace `json-jwt` with `ruby-jwt` to align with doorkeeper-jwt.
26
+ - [#180] Add PKCE support to OpenID discovery endpoint (thanks to @stanhu).
14
27
 
15
28
  ## v1.8.2 (2022-07-13)
16
29
 
@@ -35,68 +35,9 @@ module Doorkeeper
35
35
  end
36
36
  end
37
37
 
38
- module Option
39
- # Defines configuration option
40
- #
41
- # When you call option, it defines two methods. One method will take place
42
- # in the +Config+ class and the other method will take place in the
43
- # +Builder+ class.
44
- #
45
- # The +name+ parameter will set both builder method and config attribute.
46
- # If the +:as+ option is defined, the builder method will be the specified
47
- # option while the config attribute will be the +name+ parameter.
48
- #
49
- # If you want to introduce another level of config DSL you can
50
- # define +builder_class+ parameter.
51
- # Builder should take a block as the initializer parameter and respond to function +build+
52
- # that returns the value of the config attribute.
53
- #
54
- # ==== Options
55
- #
56
- # * [:+as+] Set the builder method that goes inside +configure+ block
57
- # * [+:default+] The default value in case no option was set
58
- #
59
- # ==== Examples
60
- #
61
- # option :name
62
- # option :name, as: :set_name
63
- # option :name, default: 'My Name'
64
- # option :scopes builder_class: ScopesBuilder
65
- #
66
- def option(name, options = {})
67
- attribute = options[:as] || name
68
- attribute_builder = options[:builder_class]
69
-
70
- Builder.instance_eval do
71
- define_method name do |*args, &block|
72
- # TODO: is builder_class option being used?
73
- value = if attribute_builder
74
- attribute_builder.new(&block).build
75
- else
76
- block || args.first
77
- end
78
-
79
- @config.instance_variable_set(:"@#{attribute}", value)
80
- end
81
- end
82
-
83
- define_method attribute do |*_|
84
- if instance_variable_defined?(:"@#{attribute}")
85
- instance_variable_get(:"@#{attribute}")
86
- else
87
- options[:default]
88
- end
89
- end
90
-
91
- public attribute
92
- end
93
-
94
- def extended(base)
95
- base.send(:private, :option)
96
- end
97
- end
38
+ mattr_reader(:builder_class) { Config::Builder }
98
39
 
99
- extend Option
40
+ extend ::Doorkeeper::Config::Option
100
41
 
101
42
  option :issuer
102
43
  option :signing_key
@@ -31,7 +31,7 @@ module Doorkeeper
31
31
  end
32
32
 
33
33
  def as_jws_token
34
- JWT.encode(as_json,
34
+ ::JWT.encode(as_json,
35
35
  Doorkeeper::OpenidConnect.signing_key.keypair,
36
36
  Doorkeeper::OpenidConnect.signing_algorithm.to_s,
37
37
  { kid: Doorkeeper::OpenidConnect.signing_key.kid }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Doorkeeper
4
4
  module OpenidConnect
5
- VERSION = '1.8.4'
5
+ VERSION = '1.8.6'
6
6
  end
7
7
  end
@@ -48,7 +48,7 @@ module Doorkeeper
48
48
  else
49
49
  OpenSSL::PKey.read(configuration.signing_key)
50
50
  end
51
- JWT::JWK.new(key)
51
+ ::JWT::JWK.new(key, { kid_generator: JWT::JWK::Thumbprint })
52
52
  end
53
53
 
54
54
  def self.signing_key_normalized
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper-openid_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Dengler
8
8
  - Markus Koller
9
+ - Nikita Bulai
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2023-02-01 00:00:00.000000000 Z
13
+ date: 2023-05-12 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: doorkeeper
@@ -119,6 +120,7 @@ description: OpenID Connect extension for Doorkeeper.
119
120
  email:
120
121
  - sam.dengler@playonsports.com
121
122
  - markus-koller@gmx.ch
123
+ - bulajnikita@gmail.com
122
124
  executables: []
123
125
  extensions: []
124
126
  extra_rdoc_files: []
@@ -177,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
179
  requirements:
178
180
  - - ">="
179
181
  - !ruby/object:Gem::Version
180
- version: '2.6'
182
+ version: '2.7'
181
183
  required_rubygems_version: !ruby/object:Gem::Requirement
182
184
  requirements:
183
185
  - - ">="