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 +4 -4
- data/CHANGELOG.md +4 -2
- data/VERSION +1 -1
- data/lib/rack/oauth2/access_token/mtls.rb +2 -2
- data/lib/rack/oauth2/client.rb +2 -2
- data/lib/rack/oauth2.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7574d464d319f64fc1cfd3913d6d773024b697bd55aadece79a0f085e237a5ba
|
4
|
+
data.tar.gz: 9efa49f33b0a29b2eeb54917c60092e5c9fb436e75b3f525cc117fcce1dce81a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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.
|
11
|
-
httpclient.
|
10
|
+
httpclient.ssl.client_key = private_key
|
11
|
+
httpclient.ssl.client_cert = certificate
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
data/lib/rack/oauth2/client.rb
CHANGED
@@ -172,8 +172,8 @@ module Rack
|
|
172
172
|
params.merge!(
|
173
173
|
client_id: identifier
|
174
174
|
)
|
175
|
-
http_client.
|
176
|
-
http_client.
|
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.
|
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:
|
315
|
+
version: '0'
|
316
316
|
requirements: []
|
317
317
|
rubygems_version: 3.3.7
|
318
318
|
signing_key:
|