Verify certificate when authenticating

This commit is contained in:
2021-12-06 18:04:51 +01:00
parent feb76ff890
commit 79b80772c7
2 changed files with 17 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ func ActionServe(c *cli.Context) error {
grpcServer := grpc.NewServer(
grpc.Creds(creds),
grpc.ChainUnaryInterceptor(interceptors.NewAuthInterceptor(userStore, authLogger)),
grpc.ChainUnaryInterceptor(interceptors.NewAuthInterceptor(userStore, certSvc, authLogger)),
)
pb.RegisterFileServiceServer(grpcServer, grpcFileServer)
pb.RegisterUserServiceServer(grpcServer, grpcUserServer)