Skip to content

Commit

Permalink
migrate from github.com/dgrijalva/jwt-go to github.com/golang-jwt/jwt
Browse files Browse the repository at this point in the history
Signed-off-by: Durga Sarat Chandra Maddu <[email protected]>
  • Loading branch information
Dmaddu committed Dec 26, 2024
1 parent c4341c9 commit 1d4f040
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/trial-license-service/pkg/license/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"strings"
"time"

jwt "github.com/dgrijalva/jwt-go"
"github.com/gofrs/uuid"
jwt "github.com/golang-jwt/jwt"
"github.com/pkg/errors"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"testing"

jwt "github.com/dgrijalva/jwt-go"
jwt "github.com/golang-jwt/jwt"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ require (
github.com/ckaznocha/protoc-gen-lint v0.2.1
github.com/coreos/go-oidc v2.2.1+incompatible
github.com/dave/jennifer v1.7.0
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/envoyproxy/protoc-gen-validate v0.4.0
github.com/fatih/color v1.17.0
github.com/ghodss/yaml v1.0.1-0.20180503022059-e9ed3c6dfb39
Expand Down Expand Up @@ -110,6 +109,7 @@ require (
github.com/dexidp/dex/api/v2 v2.0.0
github.com/gofiber/fiber/v2 v2.52.5
github.com/gofiber/utils v1.1.0
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/hashicorp/go-version v1.7.0
github.com/prashantv/gostub v1.1.0
github.com/shirou/gopsutil v3.21.11+incompatible
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ github.com/dexidp/dex v0.0.0-20201214084049-0f9e2888ab65 h1:0e0aPOWDbX7n1XEkMP4k
github.com/dexidp/dex v0.0.0-20201214084049-0f9e2888ab65/go.mod h1:ECzVsF9ahGC3Io8RPo2B8IlFYfRvKgnOOHQdXZfGKUk=
github.com/dexidp/dex/api/v2 v2.0.0 h1:bvge1sRmzVzWPWp4WlMzS04lcNQA+jFzHqKV3066bRw=
github.com/dexidp/dex/api/v2 v2.0.0/go.mod h1:k5arBJT1QYvpsEY3sEd0NXJp3hKWKuUUfzJ3BlcqPdM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
github.com/dimchansky/utfbom v1.1.0/go.mod h1:rO41eb7gLfo8SF1jd9F8HplJm1Fewwi4mQvIirEdv+8=
Expand Down Expand Up @@ -407,6 +406,8 @@ github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV
github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
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/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
github.com/golang-jwt/jwt/v4 v4.2.0/go.mod h1:/xlHOz8bRuivTWchD4jCa+NbatV+wEUSzwAxVc6locg=
github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
Expand Down
2 changes: 1 addition & 1 deletion lib/license/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"google.golang.org/protobuf/types/known/timestamppb"

jwt "github.com/dgrijalva/jwt-go"
jwt "github.com/golang-jwt/jwt"
"github.com/golang/protobuf/ptypes/timestamp"
)

Expand Down

0 comments on commit 1d4f040

Please sign in to comment.