server: grpc.WithInsecure is now insecure.NewCredentials()

Signed-off-by: Stephen Augustus <foo@auggie.dev>
This commit is contained in:
Stephen Augustus 2021-12-17 19:39:03 -05:00
parent 3fa53bbc3d
commit 243661155e
No known key found for this signature in database
GPG key ID: 5C9566007B24BDA9

View file

@ -9,6 +9,7 @@ import (
"github.com/sirupsen/logrus"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"github.com/dexidp/dex/api/v2"
"github.com/dexidp/dex/pkg/log"
@ -41,7 +42,7 @@ func newAPI(s storage.Storage, logger log.Logger, t *testing.T) *apiClient {
// Dial will retry automatically if the serv.Serve() goroutine
// hasn't started yet.
conn, err := grpc.Dial(l.Addr().String(), grpc.WithInsecure())
conn, err := grpc.Dial(l.Addr().String(), insecure.NewCredentials())
if err != nil {
t.Fatal(err)
}