summaryrefslogtreecommitdiff
path: root/pkg/authz/grpc.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/authz/grpc.go')
-rw-r--r--pkg/authz/grpc.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/pkg/authz/grpc.go b/pkg/authz/grpc.go
index 9851db4..ad5cc04 100644
--- a/pkg/authz/grpc.go
+++ b/pkg/authz/grpc.go
@@ -26,18 +26,6 @@ func NewGrpcConnection(ctx context.Context, host string) *grpc.ClientConn {
return connection
}
-func NewSpiceDBClient(ctx context.Context, host string, presharedKey string) *authzed.Client {
- client, err := authzed.NewClient(
- host,
- grpc.WithTransportCredentials(credentialsFor(ctx, host)),
- grpc.WithPerRPCCredentials(NewBearerToken(presharedKey)),
- )
- if err != nil {
- pls.LogErrorNow(ctx, err)
- }
- return client
-}
-
func credentialsFor(ctx context.Context, host string) credentials.TransportCredentials {
if host == "" {
return insecure.NewCredentials()