doorkeeper-openid_connect 1.8.4 → 1.8.5

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: 5bff9200998de53d57960fb1b0bd63e2a692e214285fdf720b26b574fd2ab20b
4
+ data.tar.gz: 83143a584098d2c164ad076d00b71af22f74c54a9c99c2cde823bc89e13e6bc3
5
5
  SHA512:
6
- metadata.gz: 569d7fcb3e77e8e77f2e3a2abe6b02c6664416e136e30fecc2c78462c74a87b936ec9b1d665d90c062db4b5ce2078ec26a93b938912b2e97dc6ebbb7c93ac94d
7
- data.tar.gz: 60df7a49cef6ee6ff57efc4b9fc775053d0406015a9dc3fac0455d6177f86dcf98b8d6384204fc54033c2b4bb82a8947808e960543c47c1cceba1796035a5e63
6
+ metadata.gz: 19a46eaf1bb1224a0a1e3e76fd59a7a9fd90d7bafa3c0da6c68f1684a199fec659627dc0d13600bda8aca1267bcf386317a80773612110a396f750bffa0cd6e8
7
+ data.tar.gz: 4ad9bd1ddfaf2b0e5b01e92559b134ed36f39e01df9612a2763368787f13a16ca0bccbc3d18ae538b2208daf7b53e39453a66ee114b2c112b596f5a670a4d151
data/CHANGELOG.md CHANGED
@@ -1,16 +1,25 @@
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.
4
+
5
+ ## v1.8.5 (2023-02-02)
6
+
7
+ - [#186] Simplify gem configuration reusing Doorkeeper configuration option DSL (thanks to @nbulaj).
8
+ - [#182] Drop support for Ruby 2.6 and Rails 5 (thanks to @sato11).
9
+ - [#188] Fix dookeeper-jwt compatibility (thanks to @zavan).
10
+
11
+ ## v1.8.4 (2023-02-01)
12
+
13
+ - [#185] Don't call active_record_options for Doorkeeper >= 5.6.3 (thanks to @zavan).
14
+ - [#183] Stop render consent screen when user is not logged-in (thanks to @nov).
6
15
 
7
16
  ## v1.8.3 (2022-12-02)
8
17
 
9
- - [#180] Add PKCE support to OpenID discovery endpoint.
18
+ - [#180] Add PKCE support to OpenID discovery endpoint (thanks to @stanhu).
10
19
 
11
20
  ## Unreleased next
12
21
 
13
- - [#177] Replace `json-jwt` with `ruby-jwt` to align with doorkeeper-jwt.
22
+ - [#177] Replace `json-jwt` with `ruby-jwt` to align with doorkeeper-jwt (thanks to @kristof-mattei).
14
23
 
15
24
  ## v1.8.2 (2022-07-13)
16
25
 
@@ -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.5'
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)
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.5
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-02-02 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
  - - ">="