forked from mystiq/dex
server: grpc.WithInsecure is now insecure.NewCredentials()
Signed-off-by: Stephen Augustus <foo@auggie.dev>
This commit is contained in:
parent
3fa53bbc3d
commit
243661155e
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue