Skip to content

Commit

Permalink
chore: update go-jose to v3.0.0
Browse files Browse the repository at this point in the history
This commit updates `go-jose` from `v2.6.0` to `v3.0.0`.
  • Loading branch information
JustinHook committed May 2, 2023
1 parent c446ec7 commit 4de9641
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ require (
github.com/fsnotify/fsnotify v1.6.0
github.com/ghodss/yaml v1.0.0
github.com/go-bindata/go-bindata v3.1.2+incompatible
github.com/go-jose/go-jose/v3 v3.0.0
github.com/go-openapi/jsonpointer v0.19.5
github.com/go-openapi/runtime v0.24.2
github.com/go-sql-driver/mysql v1.7.0
Expand Down Expand Up @@ -89,7 +90,6 @@ require (
gonum.org/v1/plot v0.12.0
google.golang.org/grpc v1.50.1
google.golang.org/protobuf v1.28.1
gopkg.in/square/go-jose.v2 v2.6.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmn
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-jose/go-jose/v3 v3.0.0 h1:s6rrhirfEP/CGIoc6p+PZAeogN2SxKav6Wp7+dyMWVo=
github.com/go-jose/go-jose/v3 v3.0.0/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
Expand Down Expand Up @@ -1482,8 +1484,6 @@ gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
gopkg.in/square/go-jose.v2 v2.3.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI=
gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
gopkg.in/validator.v2 v2.0.0-20180514200540-135c24b11c19/go.mod h1:o4V0GXN9/CAmCsvJ0oXYZvrZOe7syiDZSN1GWGZTGzc=
gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
Expand Down
2 changes: 1 addition & 1 deletion josex/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"errors"
"fmt"

"gopkg.in/square/go-jose.v2"
"github.com/go-jose/go-jose/v3"
)

// NewSigningKey generates a keypair for corresponding SignatureAlgorithm.
Expand Down
2 changes: 1 addition & 1 deletion josex/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package josex
import (
"crypto"

"gopkg.in/square/go-jose.v2"
"github.com/go-jose/go-jose/v3"
)

// ToPublicKey returns the public key of the given private key.
Expand Down
2 changes: 1 addition & 1 deletion josex/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"errors"
"fmt"

"gopkg.in/square/go-jose.v2"
"github.com/go-jose/go-jose/v3"
)

// LoadJSONWebKey returns a *jose.JSONWebKey for a given JSON string.
Expand Down
2 changes: 1 addition & 1 deletion jwksx/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/http"
"sync"

"github.com/go-jose/go-jose/v3"
"github.com/pkg/errors"
"gopkg.in/square/go-jose.v2"
)

// Fetcher is a small helper for fetching JSON Web Keys from remote endpoints.
Expand Down
2 changes: 1 addition & 1 deletion modx/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ require (
gonum.org/v1/plot v0.0.0-20200111075622-4abb28f724d5
google.golang.org/grpc v1.36.0
gopkg.in/DataDog/dd-trace-go.v1 v1.27.0
gopkg.in/square/go-jose.v2 v2.2.2
github.com/go-jose/go-jose v3.0.0
)
go 1.16
Expand Down

0 comments on commit 4de9641

Please sign in to comment.