def remote_app(self, name, register=True, **kwargs):
remote = OAuthRemoteApp(self, name, **kwargs)<EOL>if register:<EOL><INDENT>assert name not in self.remote_apps<EOL>self.remote_apps[name] = remote<EOL><DEDENT>return remote<EOL>
Registers a new remote application.

        :param name: the name of the remote application
        :param register: whether the remote app will be registered

        Find more parameters from :class:`OAuthRemoteApp`.