From d6f4311b4319a5c35a7c8b1513a839cf44227027 Mon Sep 17 00:00:00 2001 From: "Roland.Ma" Date: Mon, 28 Jun 2021 07:16:24 +0000 Subject: [PATCH] fix:code overrided by pr#4011 Signed-off-by: Roland.Ma --- pkg/apiserver/authentication/identityprovider/oidc/oidc.go | 2 +- pkg/apiserver/authentication/identityprovider/oidc/oidc_test.go | 2 +- pkg/apiserver/authentication/token/jwt.go | 2 +- pkg/simple/client/devops/jenkins/request.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/apiserver/authentication/identityprovider/oidc/oidc.go b/pkg/apiserver/authentication/identityprovider/oidc/oidc.go index bd071c488..3a998805a 100644 --- a/pkg/apiserver/authentication/identityprovider/oidc/oidc.go +++ b/pkg/apiserver/authentication/identityprovider/oidc/oidc.go @@ -28,7 +28,7 @@ import ( "kubesphere.io/kubesphere/pkg/utils/sliceutil" oidc "github.com/coreos/go-oidc" - jwt "github.com/dgrijalva/jwt-go" + jwt "github.com/form3tech-oss/jwt-go" "github.com/mitchellh/mapstructure" "golang.org/x/oauth2" diff --git a/pkg/apiserver/authentication/identityprovider/oidc/oidc_test.go b/pkg/apiserver/authentication/identityprovider/oidc/oidc_test.go index fcee3b023..146e4c1e4 100644 --- a/pkg/apiserver/authentication/identityprovider/oidc/oidc_test.go +++ b/pkg/apiserver/authentication/identityprovider/oidc/oidc_test.go @@ -32,7 +32,7 @@ import ( "testing" "time" - jwt "github.com/dgrijalva/jwt-go" + jwt "github.com/form3tech-oss/jwt-go" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/onsi/gomega/gexec" diff --git a/pkg/apiserver/authentication/token/jwt.go b/pkg/apiserver/authentication/token/jwt.go index 7a8822ab9..409dca649 100644 --- a/pkg/apiserver/authentication/token/jwt.go +++ b/pkg/apiserver/authentication/token/jwt.go @@ -20,7 +20,7 @@ import ( "fmt" "time" - jwt "github.com/dgrijalva/jwt-go" + jwt "github.com/form3tech-oss/jwt-go" "k8s.io/apiserver/pkg/authentication/user" "k8s.io/klog" ) diff --git a/pkg/simple/client/devops/jenkins/request.go b/pkg/simple/client/devops/jenkins/request.go index df83d7923..d0a4df57f 100644 --- a/pkg/simple/client/devops/jenkins/request.go +++ b/pkg/simple/client/devops/jenkins/request.go @@ -29,7 +29,7 @@ import ( "path/filepath" "strings" - jwt "github.com/dgrijalva/jwt-go" + jwt "github.com/form3tech-oss/jwt-go" authtoken "kubesphere.io/kubesphere/pkg/apiserver/authentication/token" "kubesphere.io/kubesphere/pkg/simple/client/devops"