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

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

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)