This is an automated email from the ASF dual-hosted git repository.

tianxiaoliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git


The following commit(s) were added to refs/heads/master by this push:
     new 76e5f9d  更新 golang-jwt 引用路径 (#1118)
76e5f9d is described below

commit 76e5f9daabf6398ba6e2d3ba9795f264a86e7b90
Author: 朱程成 <[email protected]>
AuthorDate: Sat Jul 31 10:47:10 2021 +0800

    更新 golang-jwt 引用路径 (#1118)
---
 go.mod                              | 2 +-
 go.sum                              | 2 ++
 server/service/rbac/authr_plugin.go | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/go.mod b/go.mod
index 78c498b..e9c5032 100644
--- a/go.mod
+++ b/go.mod
@@ -13,7 +13,7 @@ require (
        github.com/coreos/etcd v3.3.25+incompatible
        github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // v4
        github.com/deckarep/golang-set v1.7.1
-       github.com/dgrijalva/jwt-go v3.2.0+incompatible
+       github.com/golang-jwt/jwt v3.2.1+incompatible
        github.com/elithrar/simple-scrypt v1.3.0
        github.com/ghodss/yaml v1.0.0
        github.com/go-chassis/cari v0.5.1-0.20210723060050-4a4f119d64ff
diff --git a/go.sum b/go.sum
index 06763dc..d426eef 100644
--- a/go.sum
+++ b/go.sum
@@ -334,6 +334,8 @@ github.com/gogo/protobuf v1.2.1/go.mod 
h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV
 github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d/go.mod 
h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
 github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
 github.com/gogo/protobuf v1.3.1/go.mod 
h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
+github.com/golang-jwt/jwt v3.2.1+incompatible 
h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c=
+github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod 
h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
 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-20160516000752-02826c3e7903/go.mod 
h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
diff --git a/server/service/rbac/authr_plugin.go 
b/server/service/rbac/authr_plugin.go
index b08f587..a21a0fd 100644
--- a/server/service/rbac/authr_plugin.go
+++ b/server/service/rbac/authr_plugin.go
@@ -24,11 +24,11 @@ import (
        "github.com/apache/servicecomb-service-center/pkg/log"
        "github.com/apache/servicecomb-service-center/pkg/privacy"
        "github.com/apache/servicecomb-service-center/pkg/util"
-       "github.com/dgrijalva/jwt-go"
        "github.com/go-chassis/cari/pkg/errsvc"
        "github.com/go-chassis/cari/rbac"
        "github.com/go-chassis/go-chassis/v2/security/authr"
        "github.com/go-chassis/go-chassis/v2/security/token"
+       "github.com/golang-jwt/jwt"
 )
 
 //EmbeddedAuthenticator is sc default auth plugin, RBAC data is persisted in 
etcd

Reply via email to