(self, script_config: collections.OrderedDict, context_id: int)
Protected method to configure the ZAP 'Context / Authentication Settings with Script based Authentication' based on a given ZAP config.
        
        Parameters
        ----------
        script_config : collections.OrderedDict
            The current 'script-based' authentication configuration object containing the ZAP authentication configuration (based on the class ZapConfiguration).
        context_id : int
            The zap context id tot configure the ZAP authentication for (based on the class ZapConfiguration).
Protected method to configure the ZAP 'Context / Authentication Settings with Script based Authentication' based on a given ZAP config.
        
        Parameters
        ----------
        script_config : collections.OrderedDict
            The current 'script-based' authentication configuration object containing the ZAP authentication configuration (based on the class ZapConfiguration).
        context_id : int
            The zap context id tot configure the ZAP authentication for (based on the class ZapConfiguration).
Protected method to configure the ZAP Context / Authentication Settings with Script based Authentication based on a given ZAP config . Parameters ---------- script_config : collections . OrderedDict The current script - based authentication configuration object containing the ZAP authentication configuration ( based on the class ZapConfiguration ) . context_id : int The zap context id tot configure the ZAP authentication for ( based on the class ZapConfiguration ) .
def _configure_context_authentication_script(self, script_config: collections.OrderedDict, context_id: int):
        """Protected method to configure the ZAP 'Context / Authentication Settings with Script based Authentication' based on a given ZAP config.
        
        Parameters
        ----------
        script_config : collections.OrderedDict
            The current 'script-based' authentication configuration object containing the ZAP authentication configuration (based on the class ZapConfiguration).
        context_id : int
            The zap context id tot configure the ZAP authentication for (based on the class ZapConfiguration).
        """
        
        if(not script_config == None and "name" in script_config and "filePath" in script_config and "engine" in script_config):
            self._configure_load_script(script_config=script_config, script_type='authentication')

            auth_params = self.__get_script_auth_params(script_config)

            # Add additional script parameters
            logging.debug('Loading Authentication Script Parameters: %s', auth_params)
            self.check_zap_result(
                result=self.get_zap.authentication.set_authentication_method(
                    contextid=context_id,
                    authmethodname='scriptBasedAuthentication',
                    authmethodconfigparams=auth_params),
                method_name="set_authentication_method",
                exception_message="Missing ZAP Authentication Script Parameters! Please check your secureCodeBox YAML configuration!"
            )
        else:
          logging.warning("Important script authentication configs (name, filePath, engine) are missing! Ignoring the authentication script configuration. Please check your YAML configuration.")
def _configure_context_authentication_script ( self , script_config : collections . OrderedDict , context_id : int ) : if ( not script_config == None and "name" in script_config and "filePath" in script_config and "engine" in script_config ) : self . _configure_load_script ( script_config = script_config , script_type = 'authentication' ) auth_params = self . __get_script_auth_params ( script_config ) # Add additional script parameters logging . debug ( 'Loading Authentication Script Parameters: %s' , auth_params ) self . check_zap_result ( result = self . get_zap . authentication . set_authentication_method ( contextid = context_id , authmethodname = 'scriptBasedAuthentication' , authmethodconfigparams = auth_params ) , method_name = "set_authentication_method" , exception_message = "Missing ZAP Authentication Script Parameters! Please check your secureCodeBox YAML configuration!" ) else : logging . warning ( "Important script authentication configs (name, filePath, engine) are missing! Ignoring the authentication script configuration. Please check your YAML configuration." )