From aa6a59d3e5d4ab2a562cc735dd628c6ddaa9c3c1 Mon Sep 17 00:00:00 2001 From: feistel <6742251-feistel@users.noreply.gitlab.com> Date: Wed, 4 Aug 2021 02:01:29 +0000 Subject: build: bump jwt library to v4.0.0 --- go.mod | 2 +- go.sum | 4 ++-- internal/auth/auth_code.go | 2 +- internal/source/gitlab/client/client.go | 2 +- internal/source/gitlab/client/client_test.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 0b6962d0..7bd8a1f1 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/andybalholm/brotli v1.0.3 github.com/cenkalti/backoff/v4 v4.0.2 - github.com/golang-jwt/jwt v3.2.2+incompatible + github.com/golang-jwt/jwt/v4 v4.0.0 github.com/golang/mock v1.3.1 github.com/golangci/golangci-lint v1.27.0 github.com/gorilla/context v1.1.1 diff --git a/go.sum b/go.sum index 340b9e3f..177b446e 100644 --- a/go.sum +++ b/go.sum @@ -145,8 +145,8 @@ github.com/gofrs/flock v0.0.0-20190320160742-5135e617513b/go.mod h1:F1TvTiK9OcQq github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1 h1:/s5zKNz0uPFCZ5hddgPdo2TK2TVrUNMn0OOX8/aZMTE= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY= -github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= +github.com/golang-jwt/jwt/v4 v4.0.0 h1:RAqyYixv1p7uEnocuy8P1nru5wprCh/MH2BIlW5z5/o= +github.com/golang-jwt/jwt/v4 v4.0.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= diff --git a/internal/auth/auth_code.go b/internal/auth/auth_code.go index 328ca00c..9ab912dc 100644 --- a/internal/auth/auth_code.go +++ b/internal/auth/auth_code.go @@ -10,7 +10,7 @@ import ( "fmt" "io" - "github.com/golang-jwt/jwt" + "github.com/golang-jwt/jwt/v4" "github.com/gorilla/securecookie" "golang.org/x/crypto/hkdf" ) diff --git a/internal/source/gitlab/client/client.go b/internal/source/gitlab/client/client.go index 0d559a99..f26bef10 100644 --- a/internal/source/gitlab/client/client.go +++ b/internal/source/gitlab/client/client.go @@ -12,7 +12,7 @@ import ( "path" "time" - "github.com/golang-jwt/jwt" + "github.com/golang-jwt/jwt/v4" "gitlab.com/gitlab-org/labkit/correlation" diff --git a/internal/source/gitlab/client/client_test.go b/internal/source/gitlab/client/client_test.go index 1334280e..12bc026e 100644 --- a/internal/source/gitlab/client/client_test.go +++ b/internal/source/gitlab/client/client_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/golang-jwt/jwt" + "github.com/golang-jwt/jwt/v4" "github.com/stretchr/testify/require" "gitlab.com/gitlab-org/gitlab-pages/internal/domain" -- cgit v1.2.3