Skip to content

Commit

Permalink
godeps: replace "form3tech-oss/jwt-go" with "golang-jwt/jwt"
Browse files Browse the repository at this point in the history
use a community maintained fork of jwt
for reference: kubernetes/kubernetes#104007

Signed-off-by: haimantika mitra <haimantikamitra@gmail.com>
  • Loading branch information
Haimantika authored and phlogistonjohn committed Aug 24, 2021
1 parent f909b26 commit f0ea1e7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/glusterfs/app_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"net/http"
"strings"

jwt "github.com/form3tech-oss/jwt-go"
jwt "github.com/golang-jwt/jwt"
"github.com/urfave/negroni"

"github.com/heketi/heketi/middleware"
Expand Down
2 changes: 1 addition & 1 deletion client/api/go-client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"strconv"
"time"

jwt "github.com/form3tech-oss/jwt-go"
jwt "github.com/golang-jwt/jwt"
"github.com/heketi/heketi/pkg/utils"
)

Expand Down
2 changes: 1 addition & 1 deletion docs/profiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Showing top 10 nodes out of 93
6.50MB 3.25% 77.23% 6.50MB 3.25% context.WithValue
6.50MB 3.25% 80.48% 6.50MB 3.25% encoding/json.(*decodeState).literalStore
6MB 3.00% 83.49% 6.50MB 3.25% net/textproto.(*Reader).ReadLine
5.50MB 2.75% 86.24% 39.51MB 19.76% github.com/heketi/heketi/vendor/github.com/form3tech-oss/jwt-go.(*Parser).ParseWithClaims
5.50MB 2.75% 86.24% 39.51MB 19.76% github.com/heketi/heketi/vendor/github.com/golang-jwt/jwt.(*Parser).ParseWithClaims
```

```
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.14
require (
github.com/auth0/go-jwt-middleware v1.0.1
github.com/boltdb/bolt v1.3.1
github.com/form3tech-oss/jwt-go v3.2.2+incompatible
github.com/go-ozzo/ozzo-validation/v4 v4.3.0
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/gorilla/mux v1.8.0
github.com/heketi/tests v0.0.0-20151005000721-f3775cbcefd6
github.com/lpabon/godbc v0.1.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ github.com/gogo/protobuf v0.0.0-20171007142547-342cbe0a0415/go.mod h1:r8qH/GZQm5
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
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/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
Expand Down
2 changes: 1 addition & 1 deletion middleware/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"time"

jwtmiddleware "github.com/auth0/go-jwt-middleware"
jwt "github.com/form3tech-oss/jwt-go"
jwt "github.com/golang-jwt/jwt"
"github.com/heketi/heketi/pkg/logging"
)

Expand Down
2 changes: 1 addition & 1 deletion middleware/jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"
"time"

jwt "github.com/form3tech-oss/jwt-go"
jwt "github.com/golang-jwt/jwt"
"github.com/heketi/heketi/pkg/utils"
"github.com/heketi/tests"
"github.com/urfave/negroni"
Expand Down

0 comments on commit f0ea1e7

Please sign in to comment.