summaryrefslogtreecommitdiff
path: root/pkg/authz/grpc.go
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-07-23 11:50:42 -0600
committermo khan <mo@mokhan.ca>2025-07-23 11:50:42 -0600
commit944ef4ca499fe27a57d4cd3c21bccb99508526ca (patch)
tree3c929141ee07fc2a4f2c2b825630cb2ad3121b44 /pkg/authz/grpc.go
parent8a1b03afb949a5a3be6a78e9b2c88d2e48643f46 (diff)
refactor: Update RequirePermission middleware to connect to spicedb CheckPermission API
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()