Skip to content

Commit 5867db4

Browse files
committed
chore: update go-jose to v3.0.0
This commit updates go-jose from v2.5.2 to v3.0.0
1 parent 45a6785 commit 5867db4

25 files changed

+31
-31
lines changed

authorize_request_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"net/http"
1111
"strings"
1212

13-
"gopkg.in/square/go-jose.v2"
13+
"github.com/go-jose/go-jose/v3"
1414

1515
"github.com/ory/fosite/i18n"
1616
"github.com/ory/fosite/token/jwt"

authorize_request_handler_oidc_request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616

1717
"github.com/pkg/errors"
1818

19+
"github.com/go-jose/go-jose/v3"
1920
"github.com/stretchr/testify/assert"
2021
"github.com/stretchr/testify/require"
21-
"gopkg.in/square/go-jose.v2"
2222

2323
"github.com/ory/fosite/token/jwt"
2424
)

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
package fosite
55

66
import (
7-
"gopkg.in/square/go-jose.v2"
7+
"github.com/go-jose/go-jose/v3"
88
)
99

1010
// Client represents a client or an app.

client_authentication.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515

1616
"github.com/ory/x/errorsx"
1717

18+
"github.com/go-jose/go-jose/v3"
1819
"github.com/pkg/errors"
19-
"gopkg.in/square/go-jose.v2"
2020

2121
"github.com/ory/fosite/token/jwt"
2222
)

client_authentication_jwks_strategy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
"github.com/ory/x/errorsx"
1515

16-
"gopkg.in/square/go-jose.v2"
16+
"github.com/go-jose/go-jose/v3"
1717
)
1818

1919
const defaultJWKSFetcherStrategyCachePrefix = "github.com/ory/fosite.DefaultJWKSFetcherStrategy:"

client_authentication_jwks_strategy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ import (
1717

1818
"github.com/ory/fosite/internal/gen"
1919

20+
"github.com/go-jose/go-jose/v3"
2021
"github.com/stretchr/testify/assert"
2122
"github.com/stretchr/testify/require"
22-
"gopkg.in/square/go-jose.v2"
2323
)
2424

2525
func initServerWithKey(t *testing.T) *httptest.Server {

client_authentication_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020

2121
"github.com/ory/fosite/internal/gen"
2222

23+
"github.com/go-jose/go-jose/v3"
2324
"github.com/pkg/errors"
2425
"github.com/stretchr/testify/assert"
2526
"github.com/stretchr/testify/require"
26-
"gopkg.in/square/go-jose.v2"
2727

2828
"github.com/ory/fosite/token/jwt"
2929

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ require (
1919
github.com/cristalhq/jwt/v4 v4.0.2
2020
github.com/dgraph-io/ristretto v0.0.3
2121
github.com/ecordell/optgen v0.0.6
22+
github.com/go-jose/go-jose/v3 v3.0.0
2223
github.com/golang/mock v1.6.0
2324
github.com/gorilla/mux v1.8.0
2425
github.com/gorilla/websocket v1.4.2
@@ -39,7 +40,6 @@ require (
3940
golang.org/x/net v0.7.0
4041
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
4142
golang.org/x/text v0.7.0
42-
gopkg.in/square/go-jose.v2 v2.5.2-0.20210529014059-a5c7eec3c614
4343
)
4444

4545
replace github.com/dgraph-io/ristretto => github.com/ory/ristretto v0.1.1-0.20211108053508-297c39e6640f

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeME
121121
github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q=
122122
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q=
123123
github.com/go-bindata/go-bindata v3.1.1+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo=
124+
github.com/go-jose/go-jose/v3 v3.0.0 h1:s6rrhirfEP/CGIoc6p+PZAeogN2SxKav6Wp7+dyMWVo=
125+
github.com/go-jose/go-jose/v3 v3.0.0/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8=
124126
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
125127
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
126128
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
@@ -1030,8 +1032,6 @@ gopkg.in/ini.v1 v1.57.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
10301032
gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
10311033
gopkg.in/square/go-jose.v2 v2.1.9/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
10321034
gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
1033-
gopkg.in/square/go-jose.v2 v2.5.2-0.20210529014059-a5c7eec3c614 h1:lwJmuuJQGclcankpPJwh8rorzB0bNbVALv8phDGh8TQ=
1034-
gopkg.in/square/go-jose.v2 v2.5.2-0.20210529014059-a5c7eec3c614/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
10351035
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
10361036
gopkg.in/validator.v2 v2.0.0-20180514200540-135c24b11c19/go.mod h1:o4V0GXN9/CAmCsvJ0oXYZvrZOe7syiDZSN1GWGZTGzc=
10371037
gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=

handler/rfc7523/handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
"github.com/ory/fosite/handler/oauth2"
1111

12-
"gopkg.in/square/go-jose.v2"
13-
"gopkg.in/square/go-jose.v2/jwt"
12+
"github.com/go-jose/go-jose/v3"
13+
"github.com/go-jose/go-jose/v3/jwt"
1414

1515
"github.com/ory/fosite"
1616
"github.com/ory/x/errorsx"

0 commit comments

Comments
 (0)