keycardai-oauth 0.11.0 → 0.11.1
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 +9 -0
- data/lib/keycardai/oauth/device_authorization.rb +5 -3
- data/lib/keycardai/oauth/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: 8f71b7db8a5101db4ad089c6ad6ccedd6b0b90ce5a90af607f560e9f764ed6ec
|
|
4
|
+
data.tar.gz: 7d9c1390b89a0d2ad6e154c08c741bfdcda9ec13d1e9b70367e95e89c2f47866
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1d432957aad1da9aaa5722ab3066e4f77a3715f6e733bfd27cb38d45112e4f5f9fc4be0831fd82efb763fb70ec691c94be5fb73ec01a7e2a8e3b5a2761dc369
|
|
7
|
+
data.tar.gz: cce1ced53cbce8b27c09c13b0466417786fbed4cbfd37314fa0b4f84d78181cf48842d7ddf85e8b04f80d1030997483c179cd651d7991c98a2fb7907c0c90624
|
data/CHANGELOG.md
CHANGED
|
@@ -15,6 +15,15 @@ the loopback flow (RFC 8252), JWT signing and verification with a caching JWKS
|
|
|
15
15
|
keyring, the three application credentials (ClientSecret with multi-zone,
|
|
16
16
|
WebIdentity, WorkloadIdentity with pluggable token sources), and AccessContext.
|
|
17
17
|
|
|
18
|
+
## 0.11.1-keycardai-oauth (2026-11-25)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
- fix(keycardai-oauth): pass the explicit issuer to the device credential (#80)
|
|
22
|
+
- When both issuer and metadata are given and match ignoring a trailing slash, DeviceAuthorizationClient now passes the issuer as supplied to the credential's client_authentication instead of metadata.issuer. A mismatch still raises ConfigurationError at construction.
|
|
23
|
+
- Implements keycard-sdk-spec#140, specs/oauth-client/device-authorization.md unit row 35. SDK-124.
|
|
24
|
+
- Co-authored-by: devin-ai-keycard <devin-ai@keycard.ai>
|
|
25
|
+
Co-authored-by: Larry Osakwe <larry@keycard.ai>
|
|
26
|
+
|
|
18
27
|
## 0.11.0-keycardai-oauth (2026-11-25)
|
|
19
28
|
|
|
20
29
|
|
|
@@ -127,8 +127,9 @@ module Keycardai
|
|
|
127
127
|
CANCELLATION_CHECK_INTERVAL = 0.5
|
|
128
128
|
|
|
129
129
|
# @param issuer [String, nil] the zone's issuer URL; required unless
|
|
130
|
-
# metadata is given. With metadata,
|
|
131
|
-
#
|
|
130
|
+
# metadata is given. With metadata, this must match metadata.issuer,
|
|
131
|
+
# ignoring a trailing slash, and the credential gets this spelling.
|
|
132
|
+
# Without it, the credential gets metadata.issuer.
|
|
132
133
|
# @param metadata [AuthorizationServerMetadata, nil] pre-discovered
|
|
133
134
|
# metadata; no discovery request is made
|
|
134
135
|
# @param credential [#client_authentication, nil] authenticates every
|
|
@@ -298,7 +299,8 @@ module Keycardai
|
|
|
298
299
|
return issuer
|
|
299
300
|
end
|
|
300
301
|
raise ConfigurationError, "the metadata has no issuer" unless metadata.issuer.is_a?(String)
|
|
301
|
-
return metadata.issuer if issuer.nil?
|
|
302
|
+
return metadata.issuer if issuer.nil?
|
|
303
|
+
return issuer if issuer.chomp("/") == metadata.issuer.chomp("/")
|
|
302
304
|
|
|
303
305
|
raise ConfigurationError, "issuer #{issuer} does not match the metadata issuer #{metadata.issuer}"
|
|
304
306
|
end
|