Skip to content

Commit 29a22ad

Browse files
techknowlogick6543zeripath
authored
switch to maintained lib (#16532)
Co-authored-by: 6543 <[email protected]> Co-authored-by: Andrew Thornton <[email protected]>
1 parent 5d2e11e commit 29a22ad

30 files changed

+153
-171
lines changed

cmd/serv.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"code.gitea.io/gitea/modules/setting"
2424
"code.gitea.io/gitea/services/lfs"
2525

26-
"github.com/dgrijalva/jwt-go"
26+
"github.com/golang-jwt/jwt"
2727
jsoniter "github.com/json-iterator/go"
2828
"github.com/kballard/go-shellquote"
2929
"github.com/urfave/cli"

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ require (
2828
github.com/couchbase/gomemcached v0.1.2 // indirect
2929
github.com/couchbase/goutils v0.0.0-20210118111533-e33d3ffb5401 // indirect
3030
github.com/denisenkom/go-mssqldb v0.10.0
31-
github.com/dgrijalva/jwt-go v3.2.0+incompatible
3231
github.com/djherbis/buffer v1.2.0
3332
github.com/djherbis/nio/v3 v3.0.1
3433
github.com/dustin/go-humanize v1.0.0
@@ -51,6 +50,7 @@ require (
5150
github.com/gogs/chardet v0.0.0-20191104214054-4b6791f73a28
5251
github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14
5352
github.com/gogs/go-gogs-client v0.0.0-20210131175652-1d7215cd8d85
53+
github.com/golang-jwt/jwt v3.2.1+incompatible
5454
github.com/golang/snappy v0.0.4 // indirect
5555
github.com/google/go-github/v32 v32.1.0
5656
github.com/google/go-querystring v1.1.0 // indirect

go.sum

+2-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ github.com/denisenkom/go-mssqldb v0.0.0-20200428022330-06a60b6afbbc/go.mod h1:xb
241241
github.com/denisenkom/go-mssqldb v0.9.0/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU=
242242
github.com/denisenkom/go-mssqldb v0.10.0 h1:QykgLZBorFE95+gO3u9esLd0BmbvpWp0/waNNZfHBM8=
243243
github.com/denisenkom/go-mssqldb v0.10.0/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU=
244-
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
245244
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
246245
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
247246
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
@@ -476,6 +475,8 @@ github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14 h1:yXtpJr/LV6PFu4nTLgfjQ
476475
github.com/gogs/cron v0.0.0-20171120032916-9f6c956d3e14/go.mod h1:jPoNZLWDAqA5N3G5amEoiNbhVrmM+ZQEcnQvNQ2KaZk=
477476
github.com/gogs/go-gogs-client v0.0.0-20210131175652-1d7215cd8d85 h1:UjoPNDAQ5JPCjlxoJd6K8ALZqSDDhk2ymieAZOVaDg0=
478477
github.com/gogs/go-gogs-client v0.0.0-20210131175652-1d7215cd8d85/go.mod h1:fR6z1Ie6rtF7kl/vBYMfgD5/G5B1blui7z426/sj2DU=
478+
github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c=
479+
github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
479480
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe h1:lXe2qZdvpiX5WZkZR4hgp4KJVfY3nMkvmwbVkpv1rVY=
480481
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0=
481482
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=

modules/generate/generate.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import (
1212
"time"
1313

1414
"code.gitea.io/gitea/modules/util"
15-
"github.com/dgrijalva/jwt-go"
15+
16+
"github.com/golang-jwt/jwt"
1617
)
1718

1819
// NewInternalToken generate a new value intended to be used by INTERNAL_TOKEN.

routers/web/user/oauth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"code.gitea.io/gitea/services/forms"
2525

2626
"gitea.com/go-chi/binding"
27-
"github.com/dgrijalva/jwt-go"
27+
"github.com/golang-jwt/jwt"
2828
jsoniter "github.com/json-iterator/go"
2929
)
3030

services/auth/source/oauth2/jwtsigningkey.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"code.gitea.io/gitea/modules/setting"
2626
"code.gitea.io/gitea/modules/util"
2727

28-
"github.com/dgrijalva/jwt-go"
28+
"github.com/golang-jwt/jwt"
2929
ini "gopkg.in/ini.v1"
3030
)
3131

services/auth/source/oauth2/token.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010

1111
"code.gitea.io/gitea/modules/timeutil"
12-
"github.com/dgrijalva/jwt-go"
12+
"github.com/golang-jwt/jwt"
1313
)
1414

1515
// ___________ __

services/lfs/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"code.gitea.io/gitea/modules/log"
2222
"code.gitea.io/gitea/modules/setting"
2323

24-
"github.com/dgrijalva/jwt-go"
24+
"github.com/golang-jwt/jwt"
2525
jsoniter "github.com/json-iterator/go"
2626
)
2727

vendor/github.com/dgrijalva/jwt-go/MIGRATION_GUIDE.md

-97
This file was deleted.

vendor/github.com/dgrijalva/jwt-go/.gitignore renamed to vendor/github.com/golang-jwt/jwt/.gitignore

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/dgrijalva/jwt-go/.travis.yml renamed to vendor/github.com/golang-jwt/jwt/.travis.yml

+3-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/dgrijalva/jwt-go/LICENSE renamed to vendor/github.com/golang-jwt/jwt/LICENSE

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/golang-jwt/jwt/MIGRATION_GUIDE.md

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)