rack-oauth2 2.0.0 → 2.0.1

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: 7ef29bbdc348bb5195d4482e65b58f450085c212d3f1b4ad0045f1196973bacd
4
- data.tar.gz: 51cadd3c2b971bf1399aeaba0957c7acd275c2d1d6409703c8006397b888e649
3
+ metadata.gz: 7574d464d319f64fc1cfd3913d6d773024b697bd55aadece79a0f085e237a5ba
4
+ data.tar.gz: 9efa49f33b0a29b2eeb54917c60092e5c9fb436e75b3f525cc117fcce1dce81a
5
5
  SHA512:
6
- metadata.gz: a44b88e50ca6b93c4332fe87c2e9c2c35219b64c079218a28c33964f36bc0106788fb6dfaf2ec2e7028a18717c0bdbea86a6f142f94741fb8f4bcf4895a7717a
7
- data.tar.gz: 78509ce82118c157cd5ef8b7d7be261010947f07d0220d44afd34852b7cdeb2a93eacd310cbd36491dfe63d3d395d2af36f293cb313d11c42eadd532ed8d0903
6
+ metadata.gz: c2b01fad3bbda97b24cd9520137c58aa4ad02e91535d02f5d5d5b1b4846d3ce067148a91f55f321a0cee789c6ec63516960b5550f96262cc2bd9e89a9cc33978
7
+ data.tar.gz: 53899a188b886011d5c3b96873d3bdab5070b74e09f6770996630335b3fe7cd0665a47dc3d623d4f8b571ef82365984e3329f59161407a5c7b2ca79bfdb3f2b8
data/CHANGELOG.md CHANGED
@@ -1,13 +1,6 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [2.0.0.rc3] - 2022-10-09
4
-
5
- ## Changed
6
-
7
- - make url-encoded the default https://github.com/nov/rack-oauth2/commit/98faf139be4f5bf9ec6134d31f65a298259d8a8b
8
- - let faraday encode params https://github.com/nov/rack-oauth2/commit/f399b3afb8facb3635b8842baee8584bc4d3ce73
9
-
10
- ## [2.0.0.rc2] - 2022-10-09
3
+ ## [2.0.0] - 2022-10-09
11
4
 
12
5
  ### Added
13
6
 
@@ -15,4 +8,6 @@
15
8
 
16
9
  ### Changed
17
10
 
18
- - Switch from httpclient to faraday v2 https://github.com/nov/rack-oauth2/pull/91
11
+ - Switch from httpclient to faraday v2 https://github.com/nov/rack-oauth2/pull/91
12
+ - make url-encoded the default https://github.com/nov/rack-oauth2/commit/98faf139be4f5bf9ec6134d31f65a298259d8a8b
13
+ - let faraday encode params https://github.com/nov/rack-oauth2/commit/f399b3afb8facb3635b8842baee8584bc4d3ce73
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1
@@ -7,8 +7,8 @@ module Rack
7
7
  def initialize(attributes = {})
8
8
  super
9
9
  self.token_type = :bearer
10
- httpclient.ssl_config.client_key = private_key
11
- httpclient.ssl_config.client_cert = certificate
10
+ httpclient.ssl.client_key = private_key
11
+ httpclient.ssl.client_cert = certificate
12
12
  end
13
13
  end
14
14
  end
@@ -172,8 +172,8 @@ module Rack
172
172
  params.merge!(
173
173
  client_id: identifier
174
174
  )
175
- http_client.ssl_config.client_key = private_key
176
- http_client.ssl_config.client_cert = certificate
175
+ http_client.ssl.client_key = private_key
176
+ http_client.ssl.client_cert = certificate
177
177
  else
178
178
  params.merge!(
179
179
  client_id: identifier,
data/lib/rack/oauth2.rb CHANGED
@@ -44,7 +44,7 @@ module Rack
44
44
  Faraday.new(headers: {user_agent: agent_name}) do |faraday|
45
45
  faraday.request :url_encoded
46
46
  faraday.request :json
47
- faraday.response :logger, Rack::OAuth2.logger if debugging?
47
+ faraday.response :logger, Rack::OAuth2.logger, {bodies: true} if debugging?
48
48
  faraday.adapter Faraday.default_adapter
49
49
  local_http_config&.call(faraday)
50
50
  http_config&.call(faraday)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake