ask-auth 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62fd78e86d9cb1014d3c1edc874b037073fc8fda38247c10441401b88c96cb43
4
- data.tar.gz: c836b2db286075e95d081aa483762bf17f4332d4c306bb4a58cfd5d1323272ac
3
+ metadata.gz: 8b6984f31cfde1336e6309204570981998b06055ab1be0a8112f9e30a947eac9
4
+ data.tar.gz: 4eb5d482ff745689d26b53378358c6cab098a30583ade8549b93298977bf2980
5
5
  SHA512:
6
- metadata.gz: 9ade8a91063788a2e247c72b189f850debaad6144c5f2270cbf900354aa2d366a127ac1f6d862b3197d944cc201dc582ca7d86fb2f8a6ba7c9e6acc8ccac1775
7
- data.tar.gz: c924696e695d30d1d35367ae00e96293add344374e316d7deccca93ad2b5afad85103537c64cac90783f18866ef41c43d5deb5db9ddaf1adf62a1a460d2fd25b
6
+ metadata.gz: 4281565d7ff34c10b2f1c2d8cbbdd669748fb1f4037fc1ef7ecb132f22cb4b821658ca7c5e39d228ec7a1ebe5148e6adf2892cd34191a121900297b81891b861
7
+ data.tar.gz: 4f5227bd2484737269442f9af081df85f5f72670d50206c0e01d431338193a58e36aa074aeb9e8d9244dd0687975c6c2d1b280e7edb20116454fcdddea830d65
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.3.4] — 2026-08-18
2
+
3
+ ### Fixed
4
+
5
+ - **Token exchange requests JSON by default.** Added `Accept: application/json`
6
+ header to `token_exchange` so providers that default to form-encoded
7
+ responses (e.g. GitHub) return parseable JSON.
8
+
1
9
  ## [0.3.3] — 2026-08-18
2
10
 
3
11
  ### Fixed
@@ -124,7 +124,7 @@ module Ask
124
124
  raise OAuthError, "token_url not configured" if @token_url.to_s.empty?
125
125
 
126
126
  params[:client_secret] = client_secret if client_secret
127
- status, body = @http.post_form(@token_url, params)
127
+ status, body = @http.post_form(@token_url, params, headers: { "Accept" => "application/json" })
128
128
  raise OAuthError, "token exchange failed (#{status}): #{body.to_s[0, 200]}" unless status == 200
129
129
 
130
130
  body
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  module Auth
5
- VERSION = "0.3.3"
5
+ VERSION = "0.3.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto