14 """The Python implementation of the GRPC helloworld.Greeter server."""
16 from concurrent
import futures
21 import helloworld_pb2_grpc
22 from request_header_validator_interceptor
import \
23 RequestHeaderValidatorInterceptor
34 'one-time-password',
'42', grpc.StatusCode.UNAUTHENTICATED,
36 server =
grpc.server(futures.ThreadPoolExecutor(max_workers=10),
37 interceptors=(header_validator,))
39 server.add_insecure_port(
'[::]:50051')
41 server.wait_for_termination()
44 if __name__ ==
'__main__':