[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:
parent
3020a68b86
commit
1ec0559b34
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue