@cherrypy.expose
    def repost_fragment(self, **kwargs):
        response = self.rp.parse_authentication_response(cherrypy.session,
                                                         kwargs["url_fragment"])

        html_page = self._load_HTML_page_from_file("htdocs/success_page.html")

        # Support for hybrid flow
        authz_code = None
        try:
            authz_code = response["code"]
        except __HOLE__:
            pass

        access_token = None
        try:
            access_token = response["access_token"]
            userinfo = self.rp.make_userinfo_request(cherrypy.session,
                                                     access_token)
        except KeyError:
            pass
        return html_page.format(authz_code, access_token,
                                response["id_token"], userinfo)
dataset/ETHPy150Open rohe/pyoidc/oidc_example/simple_rp/src/rp.py/RPServer.repost_fragment