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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 013a407a3595ae3e9b735f95e216187d3534d9ff9cf52298cbd4071a1cd92994
4
- data.tar.gz: 33080c7a3643832e8601d5d20eb95fec4fd556d2e69cacb984772da6f6dc7e4b
3
+ metadata.gz: 8f71b7db8a5101db4ad089c6ad6ccedd6b0b90ce5a90af607f560e9f764ed6ec
4
+ data.tar.gz: 7d9c1390b89a0d2ad6e154c08c741bfdcda9ec13d1e9b70367e95e89c2f47866
5
5
  SHA512:
6
- metadata.gz: '01392024fcce36fb9788c654f66611d0d88ba635616d794c00f3a644231d64f965a70c54f5f005dc690540784a49f3e64289599781c8042de40ca88ec45a9b8d'
7
- data.tar.gz: 295acc954c463bffa89b83db3781aeff4b8d59bba93ce1c645b99f5ae8930dd9bd600c9f624abb3a55e676a282014b30b3680d422aee17179cd41bc89d0ccb83
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, the client uses metadata.issuer
131
- # and this must match it, ignoring a trailing slash.
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? || issuer.chomp("/") == metadata.issuer.chomp("/")
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Keycardai
4
4
  module OAuth
5
- VERSION = "0.11.0"
5
+ VERSION = "0.11.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycardai-oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keycard