|
|
|
|
@ -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) |
|
|
|
|
} |
|
|
|
|
|