def static(self, server_env, callback, logout_callback, key):
        try:
            client = server_env["OIC_CLIENT"][key]
            logger.debug("Static client: %s", server_env["OIC_CLIENT"])
        except KeyError:
            client = self.client_cls(client_authn_method=CLIENT_AUTHN_METHOD)
            client.redirect_uris = [callback]
            client.post_logout_redirect_uris = [logout_callback]
            for typ in ["authorization", "token", "userinfo"]:
                endpoint = "%s_endpoint" % typ
                setattr(client, endpoint, self.extra[endpoint])

            client.client_id = self.client_id
            client.client_secret = self.client_secret

            if "keys" in self.extra:
                client.keyjar.add(self.extra["keys"][0], self.extra["keys"][1])

            try:
                server_env["OIC_CLIENT"][key] = client
            except KeyError:
                server_env["OIC_CLIENT"] = {key: client}
        return client

    # noinspection PyUnusedLocal
dataset/ETHPy150Open rohe/pyoidc/oidc_example/rp2/oidc.py/OpenIDConnect.static/original