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 +4 -4
- data/CHANGELOG.md +11 -0
- data/VERSION +1 -1
- data/lib/rack/oauth2/client.rb +1 -5
- data/lib/rack/oauth2.rb +2 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20274cf8d591e7d1efe6add7abf51c1c4de76536104aa86d95499cc07f25ccbe
|
4
|
+
data.tar.gz: db608bd473eac6cc52cff1c6347efee3d9c3ecf942f3b62317cc67a2f9d867b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7dce46939766e5ae36b2805921b9e9d6b570439c05f91d18703a5e7d7bfec886313e1a2e786dffc24e45329b3b136eae6ebf6f6e8ef4b05ed321f8358494013
|
7
|
+
data.tar.gz: 8d3c5dd8da7b5c7c9a54532e72f8b98b933c0e9eee0b563095c78574b06ea4e5ad465c1ca96bb32524cf297687f5670f537b79555fd0308b06b1b49ae08a8f1e
|
data/CHANGELOG.md
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.0.
|
1
|
+
2.0.0.rc3
|
data/lib/rack/oauth2/client.rb
CHANGED
@@ -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.
|
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
|