File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/labstack/echo/v4
3
3
go 1.15
4
4
5
5
require (
6
- github.com/dgrijalva /jwt-go v3.2.0 +incompatible
6
+ github.com/golang-jwt /jwt v3.2.2 +incompatible
7
7
github.com/labstack/gommon v0.3.0
8
8
github.com/mattn/go-colorable v0.1.8 // indirect
9
9
github.com/stretchr/testify v1.4.0
Original file line number Diff line number Diff line change 1
1
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8 =
2
2
github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
3
- github.com/dgrijalva /jwt-go v3.2.0 +incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM =
4
- github.com/dgrijalva /jwt-go v3.2.0 +incompatible /go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ =
3
+ github.com/golang-jwt /jwt v3.2.2 +incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY =
4
+ github.com/golang-jwt /jwt v3.2.2 +incompatible /go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I =
5
5
github.com/labstack/gommon v0.3.0 h1:JEeO0bvc78PKdyHxloTKiF8BD5iGrH8T6MSeGvSgob0 =
6
6
github.com/labstack/gommon v0.3.0 /go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k =
7
7
github.com/mattn/go-colorable v0.1.2 /go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE =
Original file line number Diff line number Diff line change
1
+ // +build go1.15
2
+
1
3
package middleware
2
4
3
5
import (
7
9
"reflect"
8
10
"strings"
9
11
10
- "github.com/dgrijalva /jwt-go "
12
+ "github.com/golang-jwt /jwt"
11
13
"github.com/labstack/echo/v4"
12
14
)
13
15
88
90
89
91
// ParseTokenFunc defines a user-defined function that parses token from given auth. Returns an error when token
90
92
// parsing fails or parsed token is invalid.
91
- // Defaults to implementation using `github.com/dgrijalva /jwt-go ` as JWT implementation library
93
+ // Defaults to implementation using `github.com/golang-jwt /jwt` as JWT implementation library
92
94
ParseTokenFunc func (auth string , c echo.Context ) (interface {}, error )
93
95
}
94
96
Original file line number Diff line number Diff line change
1
+ // +build go1.15
2
+
1
3
package middleware
2
4
3
5
import (
@@ -9,7 +11,7 @@ import (
9
11
"strings"
10
12
"testing"
11
13
12
- "github.com/dgrijalva /jwt-go "
14
+ "github.com/golang-jwt /jwt"
13
15
"github.com/labstack/echo/v4"
14
16
"github.com/stretchr/testify/assert"
15
17
)
@@ -562,7 +564,7 @@ func TestJWTConfig_custom_ParseTokenFunc_Keyfunc(t *testing.T) {
562
564
return c .String (http .StatusTeapot , "test" )
563
565
})
564
566
565
- // example of minimal custom ParseTokenFunc implementation. Allows you to use different versions of `github.com/dgrijalva /jwt-go `
567
+ // example of minimal custom ParseTokenFunc implementation. Allows you to use different versions of `github.com/golang-jwt /jwt`
566
568
// with current JWT middleware
567
569
signingKey := []byte ("secret" )
568
570
You can’t perform that action at this time.
0 commit comments