diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-11 14:09:50 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-11 14:09:50 -0600 |
| commit | 9edd3e64a6f1a56798e3881a6e404dba7c47c0da (patch) | |
| tree | 77a946c14a9db7c67adffbd76e4ebdac8138efe2 /pkg/authz/server.go | |
| parent | 4ece9cd9d57c32cf593d445bed51883fb813a749 (diff) | |
chore: split the RemoteCheckService from the LocalCheckService
Diffstat (limited to 'pkg/authz/server.go')
| -rw-r--r-- | pkg/authz/server.go | 4 |
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), ), ) |
