@@ -54,6 +54,10 @@ class CFConfig:
5454 recceiver_id : str = RECCEIVERID_DEFAULT
5555 timezone : Optional [str ] = None
5656 cf_query_limit : int = DEFAULT_QUERY_LIMIT
57+ base_url : Optional [str ] = None
58+ cf_username : Optional [str ] = None
59+ cf_password : Optional [str ] = None
60+ verify_ssl : Optional [bool ] = None
5761
5862 @classmethod
5963 def loads (cls , conf : ConfigAdapter ) -> "CFConfig" :
@@ -75,6 +79,10 @@ def loads(cls, conf: ConfigAdapter) -> "CFConfig":
7579 recceiver_id = conf .get ("recceiverId" , RECCEIVERID_DEFAULT ),
7680 timezone = conf .get ("timezone" , "" ),
7781 cf_query_limit = conf .get ("findSizeLimit" , DEFAULT_QUERY_LIMIT ),
82+ base_url = conf .get ("baseUrl" ),
83+ cf_username = conf .get ("cfUsername" ),
84+ cf_password = conf .get ("cfPassword" ),
85+ verify_ssl = conf .get ("verifySSL" ),
7886 )
7987
8088
@@ -286,7 +294,12 @@ def _start_service_with_lock(self):
286294 _log .info ("CF_START with configuration: %s" , self .cf_config )
287295
288296 if self .client is None : # For setting up mock test client
289- self .client = ChannelFinderClient ()
297+ self .client = ChannelFinderClient (
298+ BaseURL = self .cf_config .base_url ,
299+ username = self .cf_config .cf_username ,
300+ password = self .cf_config .cf_password ,
301+ verify_ssl = self .cf_config .verify_ssl ,
302+ )
290303 try :
291304 cf_properties = {cf_property ["name" ] for cf_property in self .client .getAllProperties ()}
292305 required_properties = {
0 commit comments