def METHOD_NAME(self, session, uid):
    issuer_url = session["client"].wf.discovery_query(uid)
    provider_info = session["client"].provider_config(issuer_url)
    session["client"].register(provider_info["registration_endpoint"],
                               **self.client_metadata)