Skip to content

Commit

Permalink
Removing dependency on jwt
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Hanel <mh@synadia.com>
  • Loading branch information
matthiashanel committed Jun 1, 2020
1 parent b8304d7 commit 5c3369f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -3,7 +3,7 @@ module github.com/nats-io/nats.go
go 1.14

require (
github.com/golang/protobuf v1.4.0
github.com/golang/protobuf v1.4.2
github.com/nats-io/nats-server/v2 v2.1.7
github.com/nats-io/nkeys v0.2.0
github.com/nats-io/nuid v1.0.1
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Expand Up @@ -2,8 +2,9 @@ github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
github.com/golang/protobuf v1.4.0 h1:oOuy+ugB+P/kBdUnG5QaMXSIyJ1q38wWSojYCb3z5VQ=
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0=
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
Expand Down
7 changes: 0 additions & 7 deletions nats_test.go
Expand Up @@ -1436,13 +1436,6 @@ func TestUserCredentialsChainedFile(t *testing.T) {
nc.Close()
}

func createNewUserKeys() (string, []byte) {
kp, _ := nkeys.CreateUser()
pub, _ := kp.PublicKey()
priv, _ := kp.Seed()
return pub, priv
}

func TestExpiredUserCredentials(t *testing.T) {
// The goal of this test was to check how a client with an expiring JWT
// behaves. It should receive an async -ERR indicating that the auth
Expand Down

0 comments on commit 5c3369f

Please sign in to comment.