File tree Expand file tree Collapse file tree
spring-grpc-core/src/main/java/org/springframework/grpc/server/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ public class SecurityGrpcExceptionHandler implements GrpcExceptionHandler {
4242 if (logger .isDebugEnabled ()) {
4343 logger .error ("Failed to authenticate" , exception );
4444 }
45- return Status .UNAUTHENTICATED .withDescription (exception . getMessage () ).asException ();
45+ return Status .UNAUTHENTICATED .withDescription ("Authentication failed" ).asException ();
4646 }
4747 if (exception instanceof AccessDeniedException ) {
4848 if (logger .isDebugEnabled ()) {
4949 logger .error ("Failed to authorize" , exception );
5050 }
51- return Status .PERMISSION_DENIED .withDescription (exception . getMessage () ).asException ();
51+ return Status .PERMISSION_DENIED .withDescription ("Access denied" ).asException ();
5252 }
5353 return null ;
5454 }
You can’t perform that action at this time.
0 commit comments