openid_connect 2.0.0.rc1 → 2.1.0

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: cb76a4d6c2d160721424a331a41aec9b7653fac0ab5d918e179b17712bbac1fa
4
- data.tar.gz: 3cd04f7571fd187fb2086d70eb2e81d23106f0dc062f97849c3fdd6546089965
3
+ metadata.gz: 0cf79613b4379a8ed1cbc832e36b7596c46b12b1f081bcbec61dab0141a52117
4
+ data.tar.gz: b8a1ee5ff52388587ecc6433165f45b9c7548bd9c042a53bc8c095034252dd67
5
5
  SHA512:
6
- metadata.gz: 7b48bc2e27026de35da232e85dc042da1db888095ab9d238a0eba8c552f7ab747b0787b38d7ea4430487487e42a8b3602abc2bb154aba06135f779c59d14d54c
7
- data.tar.gz: 0cc2bc0144fd46ad6c6c599ae748e364d76e18aa5c396416056d4812dd7752fce920985c78af29a1807b5a2e333304f411962c10078463f79177fd6e950c372d
6
+ metadata.gz: abe7c87e7b186ae774ec11168d920b55c6f390cade7efa9a16877484d2dfa42ef591faaee622029b5fc94aae9fe42a16d8cc4d6f470d06769c163d1f3603c56d
7
+ data.tar.gz: afd508e72c9b98defc16fb8118059f9cb113d2a2a58575ffa704949b20a518ed3835b12be2b25c92c9e283f9b2e36d245b5985a16f656e818c9bcc57217f1c0d
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## [Unreleased]
2
+
3
+ ## [2.0.0] - 2022-10-09
4
+
5
+ ### Added
6
+
7
+ - start recording CHANGELOG
8
+
9
+ ### Changed
10
+
11
+ - replace httpclient with faraday v2 by @nov in https://github.com/nov/openid_connect/pull/75
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.rc1
1
+ 2.1.0
@@ -0,0 +1,9 @@
1
+ module OpenIDConnect
2
+ class AccessToken::MTLS < AccessToken
3
+ def initialize(attributes = {})
4
+ super
5
+ http_client.ssl.client_key = attributes[:private_key] || client.private_key
6
+ http_client.ssl.client_cert = attributes[:certificate] || client.certificate
7
+ end
8
+ end
9
+ end
@@ -15,6 +15,13 @@ module OpenIDConnect
15
15
  ResponseObject::UserInfo.new hash
16
16
  end
17
17
 
18
+ def to_mtls(attributes = {})
19
+ (required_attributes + optional_attributes).each do |key|
20
+ attributes[key] = self.send(key)
21
+ end
22
+ MTLS.new attributes
23
+ end
24
+
18
25
  private
19
26
 
20
27
  def resource_request
@@ -33,4 +40,6 @@ module OpenIDConnect
33
40
  end
34
41
  end
35
42
  end
36
- end
43
+ end
44
+
45
+ require 'openid_connect/access_token/mtls'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openid_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-09 00:00:00.000000000 Z
11
+ date: 2022-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo
@@ -273,6 +273,7 @@ files:
273
273
  - ".github/workflows/spec.yml"
274
274
  - ".gitignore"
275
275
  - ".rspec"
276
+ - CHANGELOG.md
276
277
  - Gemfile
277
278
  - LICENSE
278
279
  - README.rdoc
@@ -281,6 +282,7 @@ files:
281
282
  - VERSION
282
283
  - lib/openid_connect.rb
283
284
  - lib/openid_connect/access_token.rb
285
+ - lib/openid_connect/access_token/mtls.rb
284
286
  - lib/openid_connect/client.rb
285
287
  - lib/openid_connect/client/registrar.rb
286
288
  - lib/openid_connect/connect_object.rb
@@ -371,9 +373,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
371
373
  version: '0'
372
374
  required_rubygems_version: !ruby/object:Gem::Requirement
373
375
  requirements:
374
- - - ">"
376
+ - - ">="
375
377
  - !ruby/object:Gem::Version
376
- version: 1.3.1
378
+ version: '0'
377
379
  requirements: []
378
380
  rubygems_version: 3.3.7
379
381
  signing_key: