def METHOD_NAME(func):
    """Require the use of App's installation authentication.
    .. versionadded:: 1.2.0
    """
    @wraps(func)
    def auth_wrapper(self, *args, **kwargs):
        from . import session
        if isinstance(self.session.auth, session.AppInstallationTokenAuth):
            return func(self, *args, **kwargs)
        else:
            from . import exceptions
            raise exceptions.MissingAppInstallationAuthentication(
                "This method requires GitHub App authentication."
            )
    return auth_wrapper