Skip to content

Commit 81dbb33

Browse files
authored
Update github.com/lestrrat-go/jwx (v1) to github.com/lestrrat-go/jwx/v3 (#1202)
* Update github.com/lestrrat-go/jwx (v1) to github.com/lestrrat-go/jwx/v3 * Update go.mod/go.sum
1 parent 87b8b25 commit 81dbb33

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/hashicorp/hc-install v0.9.2
2424
github.com/hashicorp/terraform-exec v0.23.0
2525
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
26-
github.com/lestrrat-go/jwx v1.2.31
26+
github.com/lestrrat-go/jwx/v3 v3.0.1
2727
github.com/logrusorgru/aurora v2.0.3+incompatible
2828
github.com/manifoldco/promptui v0.9.0
2929
github.com/mattn/go-isatty v0.0.20
@@ -80,10 +80,10 @@ require (
8080
github.com/klauspost/compress v1.17.7 // indirect
8181
github.com/klauspost/pgzip v1.2.5 // indirect
8282
github.com/kr/text v0.2.0 // indirect
83-
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
8483
github.com/lestrrat-go/blackmagic v1.0.3 // indirect
8584
github.com/lestrrat-go/httpcc v1.0.1 // indirect
8685
github.com/lestrrat-go/httprc v1.0.6 // indirect
86+
github.com/lestrrat-go/httprc/v3 v3.0.0-beta2 // indirect
8787
github.com/lestrrat-go/iter v1.0.2 // indirect
8888
github.com/lestrrat-go/jwx/v2 v2.1.6 // indirect
8989
github.com/lestrrat-go/option v1.0.1 // indirect

go.sum

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,21 +163,20 @@ github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
163163
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
164164
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
165165
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
166-
github.com/lestrrat-go/backoff/v2 v2.0.8 h1:oNb5E5isby2kiro9AgdHLv5N5tint1AnDVVf2E2un5A=
167-
github.com/lestrrat-go/backoff/v2 v2.0.8/go.mod h1:rHP/q/r9aT27n24JQLa7JhSQZCKBBOiM/uP402WwN8Y=
168166
github.com/lestrrat-go/blackmagic v1.0.3 h1:94HXkVLxkZO9vJI/w2u1T0DAoprShFd13xtnSINtDWs=
169167
github.com/lestrrat-go/blackmagic v1.0.3/go.mod h1:6AWFyKNNj0zEXQYfTMPfZrAXUWUfTIZ5ECEUEJaijtw=
170168
github.com/lestrrat-go/httpcc v1.0.1 h1:ydWCStUeJLkpYyjLDHihupbn2tYmZ7m22BGkcvZZrIE=
171169
github.com/lestrrat-go/httpcc v1.0.1/go.mod h1:qiltp3Mt56+55GPVCbTdM9MlqhvzyuL6W/NMDA8vA5E=
172170
github.com/lestrrat-go/httprc v1.0.6 h1:qgmgIRhpvBqexMJjA/PmwSvhNk679oqD1RbovdCGW8k=
173171
github.com/lestrrat-go/httprc v1.0.6/go.mod h1:mwwz3JMTPBjHUkkDv/IGJ39aALInZLrhBp0X7KGUZlo=
172+
github.com/lestrrat-go/httprc/v3 v3.0.0-beta2 h1:SDxjGoH7qj0nBXVrcrxX8eD94wEnjR+EEuqqmeqQYlY=
173+
github.com/lestrrat-go/httprc/v3 v3.0.0-beta2/go.mod h1:Nwo81sMxE0DcvTB+rJyynNhv/DUu2yZErV7sscw9pHE=
174174
github.com/lestrrat-go/iter v1.0.2 h1:gMXo1q4c2pHmC3dn8LzRhJfP1ceCbgSiT9lUydIzltI=
175175
github.com/lestrrat-go/iter v1.0.2/go.mod h1:Momfcq3AnRlRjI5b5O8/G5/BvpzrhoFTZcn06fEOPt4=
176-
github.com/lestrrat-go/jwx v1.2.31 h1:/OM9oNl/fzyldpv5HKZ9m7bTywa7COUfg8gujd9nJ54=
177-
github.com/lestrrat-go/jwx v1.2.31/go.mod h1:eQJKoRwWcLg4PfD5CFA5gIZGxhPgoPYq9pZISdxLf0c=
178176
github.com/lestrrat-go/jwx/v2 v2.1.6 h1:hxM1gfDILk/l5ylers6BX/Eq1m/pnxe9NBwW6lVfecA=
179177
github.com/lestrrat-go/jwx/v2 v2.1.6/go.mod h1:Y722kU5r/8mV7fYDifjug0r8FK8mZdw0K0GpJw/l8pU=
180-
github.com/lestrrat-go/option v1.0.0/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I=
178+
github.com/lestrrat-go/jwx/v3 v3.0.1 h1:fH3T748FCMbXoF9UXXNS9i0q6PpYyJZK/rKSbkt2guY=
179+
github.com/lestrrat-go/jwx/v3 v3.0.1/go.mod h1:XP2WqxMOSzHSyf3pfibCcfsLqbomxakAnNqiuaH8nwo=
181180
github.com/lestrrat-go/option v1.0.1 h1:oAzP2fvZGQKWkvHa1/SAcFolBEca1oN+mQ7eooNBEYU=
182181
github.com/lestrrat-go/option v1.0.1/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmtT7T5nBBp3I=
183182
github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8=

internal/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"sync"
1111

1212
"github.com/google/uuid"
13-
"github.com/lestrrat-go/jwx/jwt"
13+
"github.com/lestrrat-go/jwx/v3/jwt"
1414
)
1515

1616
// ErrConfigFileMissing is thrown when the config.json file is missing.
@@ -81,7 +81,7 @@ func (c *Config) IsLoggedInWithTenant(tenantName string) bool {
8181
return false
8282
}
8383

84-
token, err := jwt.ParseString(tenant.GetAccessToken())
84+
token, err := jwt.ParseInsecure([]byte(tenant.GetAccessToken()))
8585
if err != nil {
8686
return false
8787
}

0 commit comments

Comments
 (0)