summaryrefslogtreecommitdiff
path: root/pkg/authz/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/authz/server.go')
-rw-r--r--pkg/authz/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/authz/server.go b/pkg/authz/server.go
index 24d6b0c..434d233 100644
--- a/pkg/authz/server.go
+++ b/pkg/authz/server.go
@@ -30,7 +30,7 @@ func New(ctx context.Context, options ...grpc.ServerOption) *Server {
connection := Connection.From(ctx)
if x.IsZero(connection) {
- auth.RegisterAuthorizationServer(server, NewCheckService(nil))
+ auth.RegisterAuthorizationServer(server, NewCheckService())
} else {
pls.LogNow(ctx, log.Fields{"authzd": map[string]string{
"target": connection.CanonicalTarget(),
@@ -38,7 +38,7 @@ func New(ctx context.Context, options ...grpc.ServerOption) *Server {
}})
auth.RegisterAuthorizationServer(
server,
- NewCheckService(
+ NewRemoteCheckService(
auth.NewAuthorizationClient(connection),
),
)