rack-oauth2 2.0.0.rc2 → 2.0.0.rc3

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: ad1e18cb28deffbbf219d716254c27f67a866513d3137faa199c39d892eaf1bb
4
- data.tar.gz: a34dc80d5570e5ab8567daf5956e7a8c6271f088bff8077f99186b6e7125d971
3
+ metadata.gz: 20274cf8d591e7d1efe6add7abf51c1c4de76536104aa86d95499cc07f25ccbe
4
+ data.tar.gz: db608bd473eac6cc52cff1c6347efee3d9c3ecf942f3b62317cc67a2f9d867b8
5
5
  SHA512:
6
- metadata.gz: 74f1143d54005c91583d4b308013e473cc69a82bdb0737564db187bcee0d448847492426fdf91ffa09ad51515c3664451eac3f984b917fefca7c5ced0cfb7ac8
7
- data.tar.gz: f3f5f4a3addeebb7176f7d31915f92e4ca907728add59e9ceef59e1d21e4df01f6dcaf41315e85773a3ae7216e0756ff764c7eebc76cb99873964a355d48dd42
6
+ metadata.gz: c7dce46939766e5ae36b2805921b9e9d6b570439c05f91d18703a5e7d7bfec886313e1a2e786dffc24e45329b3b136eae6ebf6f6e8ef4b05ed321f8358494013
7
+ data.tar.gz: 8d3c5dd8da7b5c7c9a54532e72f8b98b933c0e9eee0b563095c78574b06ea4e5ad465c1ca96bb32524cf297687f5670f537b79555fd0308b06b1b49ae08a8f1e
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ ## [Unreleased]
2
+
3
+ ## [2.0.0.rc2] - 2022-10-09
4
+
5
+ ### Added
6
+
7
+ - start recording CHANGELOG
8
+
9
+ ### Changed
10
+
11
+ - Switch from httpclient to faraday v2 https://github.com/nov/rack-oauth2/pull/91
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.rc2
1
+ 2.0.0.rc3
@@ -74,11 +74,7 @@ module Rack
74
74
  params.merge! @grant.as_json
75
75
  params.merge! options
76
76
  handle_response do
77
- http_client.post(
78
- absolute_uri_for(token_endpoint),
79
- Util.compact_hash(params).to_query,
80
- headers
81
- )
77
+ http_client.post(absolute_uri_for(token_endpoint), Util.compact_hash(params), headers)
82
78
  end
83
79
  end
84
80
 
data/lib/rack/oauth2.rb CHANGED
@@ -42,6 +42,8 @@ module Rack
42
42
 
43
43
  def self.http_client(agent_name = "Rack::OAuth2 (#{VERSION})", &local_http_config)
44
44
  Faraday.new(headers: {user_agent: agent_name}) do |faraday|
45
+ faraday.request :url_encoded
46
+ faraday.request :json
45
47
  faraday.response :logger, Rack::OAuth2.logger if debugging?
46
48
  faraday.adapter Faraday.default_adapter
47
49
  local_http_config&.call(faraday)
@@ -56,7 +58,6 @@ module Rack
56
58
  def self.reset_http_config!
57
59
  @@http_config = nil
58
60
  end
59
-
60
61
  end
61
62
  end
62
63
 
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.rc2
4
+ version: 2.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - nov matake
@@ -191,6 +191,7 @@ files:
191
191
  - ".github/workflows/spec.yml"
192
192
  - ".gitignore"
193
193
  - ".rspec"
194
+ - CHANGELOG.md
194
195
  - Gemfile
195
196
  - LICENSE
196
197
  - README.rdoc