Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Jan 10, 2024
1 parent 20e5b2c commit 17da58a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/core/lib/surface/init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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>();
Expand Down

0 comments on commit 17da58a

Please sign in to comment.