From f874f4cc973d196837d4baeabc9f3eae3745441a Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Fri, 3 Apr 2020 12:50:50 +0100 Subject: [PATCH] Fix nil grpc server auth bug --- options.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/options.go b/options.go index 5cd52cb..6591fac 100644 --- a/options.go +++ b/options.go @@ -5,6 +5,7 @@ import ( "crypto/tls" "net" + "github.com/micro/go-micro/v2/auth" "github.com/micro/go-micro/v2/broker" "github.com/micro/go-micro/v2/codec" "github.com/micro/go-micro/v2/registry" @@ -66,6 +67,7 @@ func MaxMsgSize(s int) server.Option { func newOptions(opt ...server.Option) server.Options { opts := server.Options{ + Auth: auth.DefaultAuth, Codecs: make(map[string]codec.NewCodec), Metadata: map[string]string{}, Broker: broker.DefaultBroker,