Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 387d19e

Browse files
chore(deps): Update module github.com/lestrrat-go/jwx to v2 (#691)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Matt Johnson-Pint <[email protected]>
1 parent 6e4667a commit 387d19e

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

runtime/go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ require (
3333
github.com/jackc/pgx/v5 v5.7.2
3434
github.com/jensneuse/abstractlogger v0.0.4
3535
github.com/joho/godotenv v1.5.1
36-
github.com/lestrrat-go/jwx v1.2.30
36+
github.com/lestrrat-go/jwx/v2 v2.1.3
3737
github.com/neo4j/neo4j-go-driver/v5 v5.27.0
3838
github.com/prometheus/client_golang v1.20.5
3939
github.com/prometheus/common v0.61.0
@@ -95,9 +95,9 @@ require (
9595
github.com/jensneuse/byte-template v0.0.0-20231025215717-69252eb3ed56 // indirect
9696
github.com/kingledion/go-tools v0.6.0 // indirect
9797
github.com/klauspost/compress v1.17.11 // indirect
98-
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
9998
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
10099
github.com/lestrrat-go/httpcc v1.0.1 // indirect
100+
github.com/lestrrat-go/httprc v1.0.6 // indirect
101101
github.com/lestrrat-go/iter v1.0.2 // indirect
102102
github.com/lestrrat-go/option v1.0.1 // indirect
103103
github.com/mattn/go-colorable v0.1.13 // indirect
@@ -115,6 +115,7 @@ require (
115115
github.com/prometheus/procfs v0.15.1 // indirect
116116
github.com/r3labs/sse/v2 v2.10.0 // indirect
117117
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
118+
github.com/segmentio/asm v1.2.0 // indirect
118119
github.com/sirupsen/logrus v1.9.3 // indirect
119120
github.com/tidwall/jsonc v0.3.2 // indirect
120121
github.com/tidwall/match v1.1.1 // indirect

runtime/go.sum

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,17 +176,16 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
176176
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
177177
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
178178
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
179-
github.com/lestrrat-go/backoff/v2 v2.0.8 h1:oNb5E5isby2kiro9AgdHLv5N5tint1AnDVVf2E2un5A=
180-
github.com/lestrrat-go/backoff/v2 v2.0.8/go.mod h1:rHP/q/r9aT27n24JQLa7JhSQZCKBBOiM/uP402WwN8Y=
181179
github.com/lestrrat-go/blackmagic v1.0.2 h1:Cg2gVSc9h7sz9NOByczrbUvLopQmXrfFx//N+AkAr5k=
182180
github.com/lestrrat-go/blackmagic v1.0.2/go.mod h1:UrEqBzIR2U6CnzVyUtfM6oZNMt/7O7Vohk2J0OGSAtU=
183181
github.com/lestrrat-go/httpcc v1.0.1 h1:ydWCStUeJLkpYyjLDHihupbn2tYmZ7m22BGkcvZZrIE=
184182
github.com/lestrrat-go/httpcc v1.0.1/go.mod h1:qiltp3Mt56+55GPVCbTdM9MlqhvzyuL6W/NMDA8vA5E=
183+
github.com/lestrrat-go/httprc v1.0.6 h1:qgmgIRhpvBqexMJjA/PmwSvhNk679oqD1RbovdCGW8k=
184+
github.com/lestrrat-go/httprc v1.0.6/go.mod h1:mwwz3JMTPBjHUkkDv/IGJ39aALInZLrhBp0X7KGUZlo=
185185
github.com/lestrrat-go/iter v1.0.2 h1:gMXo1q4c2pHmC3dn8LzRhJfP1ceCbgSiT9lUydIzltI=
186186
github.com/lestrrat-go/iter v1.0.2/go.mod h1:Momfcq3AnRlRjI5b5O8/G5/BvpzrhoFTZcn06fEOPt4=
187-
github.com/lestrrat-go/jwx v1.2.30 h1:VKIFrmjYn0z2J51iLPadqoHIVLzvWNa1kCsTqNDHYPA=
188-
github.com/lestrrat-go/jwx v1.2.30/go.mod h1:vMxrwFhunGZ3qddmfmEm2+uced8MSI6QFWGTKygjSzQ=
189-
github.com/lestrrat-go/option v1.0.0/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I=
187+
github.com/lestrrat-go/jwx/v2 v2.1.3 h1:Ud4lb2QuxRClYAmRleF50KrbKIoM1TddXgBrneT5/Jo=
188+
github.com/lestrrat-go/jwx/v2 v2.1.3/go.mod h1:q6uFgbgZfEmQrfJfrCo90QcQOcXFMfbI/fO0NqRtvZo=
190189
github.com/lestrrat-go/option v1.0.1 h1:oAzP2fvZGQKWkvHa1/SAcFolBEca1oN+mQ7eooNBEYU=
191190
github.com/lestrrat-go/option v1.0.1/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I=
192191
github.com/logrusorgru/aurora/v3 v3.0.0 h1:R6zcoZZbvVcGMvDCKo45A9U/lzYyzl5NfYIvznmDfE4=
@@ -248,6 +247,8 @@ github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6Ng
248247
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY=
249248
github.com/sebdah/goldie/v2 v2.5.3 h1:9ES/mNN+HNUbNWpVAlrzuZ7jE+Nrczbj8uFRjM7624Y=
250249
github.com/sebdah/goldie/v2 v2.5.3/go.mod h1:oZ9fp0+se1eapSRjfYbsV/0Hqhbuu3bJVvKI/NNtssI=
250+
github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys=
251+
github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs=
251252
github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=
252253
github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I=
253254
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=

runtime/middleware/jwt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"github.com/hypermodeinc/modus/runtime/utils"
2626

2727
"github.com/golang-jwt/jwt/v5"
28-
"github.com/lestrrat-go/jwx/jwk"
28+
"github.com/lestrrat-go/jwx/v2/jwk"
2929
)
3030

3131
type jwtClaimsKey string
@@ -211,7 +211,7 @@ func jwksEndpointsJsonToKeys(ctx context.Context, jwksEndpointsJson string) (map
211211
return nil, err
212212
}
213213

214-
jwkKey, exists := jwks.Get(0)
214+
jwkKey, exists := jwks.Key(0)
215215
if !exists {
216216
return nil, errors.New("No keys found in JWKS for key: " + key)
217217
}

0 commit comments

Comments
 (0)