def verify_endpoint(self, request="", cookie=None, **kwargs):
        logger.debug("verify request: %s" % request)

        _req = parse_qs(request)
        if "query" in _req:
            try:
                # TODO FIX THIS !!! Why query ?
                areq = parse_qs(_req["query"][0])
            except KeyError:
                return BadRequest()
        else:
            areq = _req

        logger.debug("REQ: %s" % areq)
        try:
            authn, acr = self.pick_auth(areq, "exact")
        except Exception as err:
            logger.exception("%s", err)
            raise

        kwargs["cookie"] = cookie
        return authn.verify(_req, **kwargs)
Render a template
dataset/ETHPy150Open rohe/pyoidc/src/oic/oic/provider.py/Provider.verify_endpoint--crossover with--dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/tests/test_templatetags.py/TemplateTagTests._render