Integrations/EDL/EDL.py
def route_edl_values() -> Response:
    """
    Main handler for values saved in the integration context
    """
    params = demisto.params()

    credentials = params.get('credentials') if params.get('credentials') else {}
    username: str = credentials.get('identifier', '')
    password: str = credentials.get('password', '')
    if username and password:
        headers: dict = cast(Dict[Any, Any], request.headers)
        if not validate_basic_authentication(headers, username, password):
            err_msg: str = 'Basic authentication failed. Make sure you are using the right credentials.'
            demisto.debug(err_msg)
            return Response(err_msg, status=401)
    panos_compatible: bool = params.get('panos_compatible', False)
    url_port_stripping: bool = params.get('url_port_stripping', False)

    values = get_edl_ioc_values(
        on_demand=params.get('on_demand'),
        limit=try_parse_integer(params.get('edl_size'), EDL_LIMIT_ERR_MSG),
        last_run=demisto.getLastRun().get('last_run'),
        indicator_query=params.get('indicators_query'),
        cache_refresh_rate=params.get('cache_refresh_rate'),
        panos_compatible=panos_compatible,
        url_port_stripping=url_port_stripping
    )
    return Response(values, status=200, mimetype='text/plain')

    Main handler for values saved in the integration context
    
Main handler for values saved in the integration context
Main handler for values saved in the integration context
def route_edl_values() -> Response:
    params = demisto.params()
    credentials = params.get('credentials') if params.get('credentials') else {}
    username: str = credentials.get('identifier', '')
    password: str = credentials.get('password', '')
    if username and password:
        headers: dict = cast(Dict[Any, Any], request.headers)
        if not validate_basic_authentication(headers, username, password):
            err_msg: str = 'Basic authentication failed. Make sure you are using the right credentials.'
            demisto.debug(err_msg)
            return Response(err_msg, status=401)
    panos_compatible: bool = params.get('panos_compatible', False)
    url_port_stripping: bool = params.get('url_port_stripping', False)
    values = get_edl_ioc_values(
        on_demand=params.get('on_demand'),
        limit=try_parse_integer(params.get('edl_size'), EDL_LIMIT_ERR_MSG),
        last_run=demisto.getLastRun().get('last_run'),
        indicator_query=params.get('indicators_query'),
        cache_refresh_rate=params.get('cache_refresh_rate'),
        panos_compatible=panos_compatible,
        url_port_stripping=url_port_stripping
    )
    return Response(values, status=200, mimetype='text/plain')
def route_edl_values ( ) -> Response : params = demisto . params ( ) credentials = params . get ( 'credentials' ) if params . get ( 'credentials' ) else { } username : str = credentials . get ( 'identifier' , '' ) password : str = credentials . get ( 'password' , '' ) if username and password : headers : dict = cast ( Dict [ Any , Any ] , request . headers ) if not validate_basic_authentication ( headers , username , password ) : err_msg : str = 'Basic authentication failed. Make sure you are using the right credentials.' demisto . debug ( err_msg ) return Response ( err_msg , status = 401 ) panos_compatible : bool = params . get ( 'panos_compatible' , False ) url_port_stripping : bool = params . get ( 'url_port_stripping' , False ) values = get_edl_ioc_values ( on_demand = params . get ( 'on_demand' ) , limit = try_parse_integer ( params . get ( 'edl_size' ) , EDL_LIMIT_ERR_MSG ) , last_run = demisto . getLastRun ( ) . get ( 'last_run' ) , indicator_query = params . get ( 'indicators_query' ) , cache_refresh_rate = params . get ( 'cache_refresh_rate' ) , panos_compatible = panos_compatible , url_port_stripping = url_port_stripping ) return Response ( values , status = 200 , mimetype = 'text/plain' )
Main handler for values saved in the integration context
Main handler for values saved in the integration context
"""
    Main handler for values saved in the integration context
    """