

def application(environ, start_response):
    '\n    The main WSGI application. Dispatch the current request to\n    the functions from above and store the regular expression\n    captures in the WSGI environment as  `oic.url_args` so that\n    the functions from above can access the url placeholders.\n\n    If nothing matches call the `not_found` function.\n\n    :param environ: The HTTP application environment\n    :param start_response: The application to run when the handling of the\n        request is done\n    :return: The response as a list of lines\n    '
    global OAS
    path = environ.get('PATH_INFO', '').lstrip('/')
    kaka = environ.get('HTTP_COOKIE', '')
    if kaka:
        handle = parse_cookie(OAS.name, OAS.seed, kaka)
        LOGGER.debug(('Cookie: %s' % (kaka,)))
    else:
        handle = ''
    environ['oic.oas'] = OAS
    LOGGER.info(('path: %s' % kaka))
    if ((path in OAS.cert) or (path in OAS.jwk)):
        return static(environ, start_response, path)
    else:
        for (regex, callback) in URLS:
            match = re.search(regex, path)
            if (match is not None):
                try:
                    environ['oic.url_args'] = match.groups()[0]
                except IndexError:
                    environ['oic.url_args'] = path
                return callback(environ, start_response, handle)
    resp = NotFound("Couldn't find the side you asked for!")
    return resp(environ, start_response)

dataset/ETHPy150Open rohe/pyoidc/oidc_example/op1/claims_provider.py application/VarMisuse@102/332 `path`->`kaka`