keycardai-mcp 0.1.3 → 0.1.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 +12 -0
- data/lib/keycardai/mcp/auth_provider.rb +5 -0
- data/lib/keycardai/mcp/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: a5706ca9b5378bc607efd8127c884e9b7565d22dcf54cf996ea69b21300d1fc9
|
|
4
|
+
data.tar.gz: 575c6193f7cfc41feda2ff46f90cea207bb53cac399e32f6024089b24be8b835
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 715cd9a2f702cd68d8b17671aad7bb25e04778a0e04f121fca58827f398bd4d3ed7d9870a6e9c3e286c8ffc94c79adc63371dddfb2936c6aef0bc1498c4864dd
|
|
7
|
+
data.tar.gz: 7809476c3a4dba4170a537fb800182074f34c64ae7a342bad9b1a761781ba9e374232e72cb66f8de662074a8b3914d23a48de10a7c5a52f2bc8e5d1ff2f90232
|
data/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,18 @@ protected-resource with path insertion, an RFC 8414 authorization-server proxy,
|
|
|
14
14
|
and JWKS), and an AuthProvider whose `grant` middleware exchanges the caller's
|
|
15
15
|
token per resource into an AccessContext. Wraps no MCP SDK.
|
|
16
16
|
|
|
17
|
+
## 0.1.4-keycardai-mcp (2026-11-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- fix(keycardai-mcp): reject an empty audience list at construction (#93)
|
|
21
|
+
- * fix(keycardai-mcp): reject an empty audience list at construction
|
|
22
|
+
- Co-Authored-By: Larry Osakwe <larry@keycard.ai>
|
|
23
|
+
- * test(keycardai-mcp): cover a nonempty AuthProvider audience list end to end
|
|
24
|
+
- ---------
|
|
25
|
+
- Co-authored-by: devin-ai-keycard <devin-ai@keycard.ai>
|
|
26
|
+
Co-authored-by: Larry Osakwe <larry@keycard.ai>
|
|
27
|
+
Co-authored-by: Larry Osakwe <>
|
|
28
|
+
|
|
17
29
|
## 0.1.3-keycardai-mcp (2026-11-24)
|
|
18
30
|
|
|
19
31
|
## 0.1.2-keycardai-mcp (2026-10-12)
|
|
@@ -22,8 +22,13 @@ module Keycardai
|
|
|
22
22
|
# @param audiences [String, Array<String>, nil] enforced on inbound tokens
|
|
23
23
|
# @param http_client [#get, #post_form] pluggable transport
|
|
24
24
|
# @param timeout [Numeric, nil]
|
|
25
|
+
# @raise [Keycardai::OAuth::ConfigurationError] explicitly empty audiences
|
|
25
26
|
def initialize(zone_url:, credential: nil, client_id: nil, client_secret: nil, audiences: nil,
|
|
26
27
|
http_client: Keycardai::OAuth::HTTP::NetHTTPClient.new, timeout: nil)
|
|
28
|
+
if audiences.is_a?(Array) && audiences.empty?
|
|
29
|
+
raise Keycardai::OAuth::ConfigurationError, "audiences must not be empty"
|
|
30
|
+
end
|
|
31
|
+
|
|
27
32
|
@zone_url = zone_url
|
|
28
33
|
@credential = credential || (client_id ? Keycardai::OAuth::ClientSecret.new(client_id, client_secret) : nil)
|
|
29
34
|
@audiences = audiences
|