diff --git a/samples/doc-snippets/src/main/java/com/example/api/ExampleGrpcEndpointImpl.java b/samples/doc-snippets/src/main/java/com/example/api/ExampleGrpcEndpointImpl.java index 0c8538671..097f30dbf 100644 --- a/samples/doc-snippets/src/main/java/com/example/api/ExampleGrpcEndpointImpl.java +++ b/samples/doc-snippets/src/main/java/com/example/api/ExampleGrpcEndpointImpl.java @@ -1,6 +1,7 @@ package com.example.api; import akka.NotUsed; +import akka.javasdk.annotations.Acl; import akka.javasdk.annotations.GrpcEndpoint; import akka.stream.Materializer; import akka.stream.javadsl.Sink; @@ -12,6 +13,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; +@Acl(allow = @Acl.Matcher(principal = Acl.Principal.ALL)) @GrpcEndpoint public class ExampleGrpcEndpointImpl implements ExampleGrpcEndpoint {