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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/ask/auth/providers/oauth.rb +1 -1
- data/lib/ask/auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b6984f31cfde1336e6309204570981998b06055ab1be0a8112f9e30a947eac9
|
|
4
|
+
data.tar.gz: 4eb5d482ff745689d26b53378358c6cab098a30583ade8549b93298977bf2980
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/ask/auth/version.rb
CHANGED