[call-v3] Move `GrpcServerAuthzFilter` to new style registration (#35502)

Closes #35502

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35502 from ctiller:tpl3 17da58ad37
PiperOrigin-RevId: 597467779
This commit is contained in:
Craig Tiller 2024-01-11 00:04:55 -08:00 committed by Copybara-Service
parent 3020a68b86
commit 1ec0559b34
3 changed files with 3 additions and 4 deletions

View File

@ -118,7 +118,7 @@ absl::Status GrpcServerAuthzFilter::Call::OnClientInitialMetadata(
return absl::OkStatus();
}
const grpc_channel_filter GrpcServerAuthzFilter::kFilterVtable =
const grpc_channel_filter GrpcServerAuthzFilter::kFilter =
MakePromiseBasedFilter<GrpcServerAuthzFilter, FilterEndpoint::kServer>(
"grpc-server-authz");

View File

@ -37,7 +37,7 @@ namespace grpc_core {
class GrpcServerAuthzFilter final
: public ImplementChannelFilter<GrpcServerAuthzFilter> {
public:
static const grpc_channel_filter kFilterVtable;
static const grpc_channel_filter kFilter;
static absl::StatusOr<GrpcServerAuthzFilter> Create(const ChannelArgs& args,
ChannelFilter::Args);

View File

@ -82,8 +82,7 @@ void RegisterSecurityFilters(CoreConfiguration::Builder* builder) {
.IfHasChannelArg(GRPC_SERVER_CREDENTIALS_ARG);
}
builder->channel_init()
->RegisterFilter(GRPC_SERVER_CHANNEL,
&GrpcServerAuthzFilter::kFilterVtable)
->RegisterFilter<GrpcServerAuthzFilter>(GRPC_SERVER_CHANNEL)
.IfHasChannelArg(GRPC_ARG_AUTHORIZATION_POLICY_PROVIDER)
.After<ServerAuthFilter>()
.After<LegacyServerAuthFilter>();