rack-oauth2 2.0.0.rc3 → 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: 20274cf8d591e7d1efe6add7abf51c1c4de76536104aa86d95499cc07f25ccbe
4
- data.tar.gz: db608bd473eac6cc52cff1c6347efee3d9c3ecf942f3b62317cc67a2f9d867b8
3
+ metadata.gz: 7574d464d319f64fc1cfd3913d6d773024b697bd55aadece79a0f085e237a5ba
4
+ data.tar.gz: 9efa49f33b0a29b2eeb54917c60092e5c9fb436e75b3f525cc117fcce1dce81a
5
5
  SHA512:
6
- metadata.gz: c7dce46939766e5ae36b2805921b9e9d6b570439c05f91d18703a5e7d7bfec886313e1a2e786dffc24e45329b3b136eae6ebf6f6e8ef4b05ed321f8358494013
7
- data.tar.gz: 8d3c5dd8da7b5c7c9a54532e72f8b98b933c0e9eee0b563095c78574b06ea4e5ad465c1ca96bb32524cf297687f5670f537b79555fd0308b06b1b49ae08a8f1e
6
+ metadata.gz: c2b01fad3bbda97b24cd9520137c58aa4ad02e91535d02f5d5d5b1b4846d3ce067148a91f55f321a0cee789c6ec63516960b5550f96262cc2bd9e89a9cc33978
7
+ data.tar.gz: 53899a188b886011d5c3b96873d3bdab5070b74e09f6770996630335b3fe7cd0665a47dc3d623d4f8b571ef82365984e3329f59161407a5c7b2ca79bfdb3f2b8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [2.0.0.rc2] - 2022-10-09
3
+ ## [2.0.0] - 2022-10-09
4
4
 
5
5
  ### Added
6
6
 
@@ -8,4 +8,6 @@
8
8
 
9
9
  ### Changed
10
10
 
11
- - 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.rc3
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.rc3
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
@@ -310,9 +310,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
310
310
  version: '0'
311
311
  required_rubygems_version: !ruby/object:Gem::Requirement
312
312
  requirements:
313
- - - ">"
313
+ - - ">="
314
314
  - !ruby/object:Gem::Version
315
- version: 1.3.1
315
+ version: '0'
316
316
  requirements: []
317
317
  rubygems_version: 3.3.7
318
318
  signing_key: