def _initialize(self):
        if 'uri' not in self.config:
            _LOGGER.error(f'[_initialize] uri config is undefined.')
            raise ERROR_HANDLER_CONFIGURATION(handler='AuthenticationGRPCHandler')

        try:
            uri_info = utils.parse_grpc_uri(self.config['uri'])
        except Exception as e:
            _LOGGER.error(f'[_initialize] AuthenticationAPIKeyCHandler Init Error: {e}')
            raise ERROR_HANDLER_CONFIGURATION(handler='AuthenticationGRPCHandler')

        self.grpc_method = pygrpc.get_grpc_method(uri_info)
Ejemplo n.º 2
0
 def __init__(self, transaction: Transaction, config: dict):
     super().__init__(transaction, config)
     self.uri_info = utils.parse_grpc_uri(self.config['uri'])
Ejemplo n.º 3
0
 def __init__(self, config):
     self._validate(config)
     self.uri_info = utils.parse_grpc_uri(config['uri'])