Skip to content

Apps Filtering #28569

Description

@AndyScherzinger

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Requirements

  • Make it possible for providers to only show selected apps in the apps management
  • Make it possible for Nextcloud to only show selected apps for Enterprise users
  • Low development effort
  • No maintenance of multiple app stores
  • No additional work for app developers

Approach

If the Nextcloud is an Enterprise instance then it should check for a local file that defines the list of allowed apps. If no local file exists then a file from apps.nextcloud.com should be used for the list of allowed Enterprise apps. The subscription key should be transferred to make authentication possible in the future and maybe return a custom list.

Dummy code

if (EnterpriseVersion) {
  if (file_exist(‘config/apps.json’)) {
    //read ‘config/json’ into array $allow_apps;
  } elseif (file_exists(‘https://apps.nextcloud.com/enterpriseapps.json?key=$subscriptionkey'))
    // read ‘https://apps.nextcloud.com/enterpriseapps.json?key=$subscriptionkey' into array $allow_apps;
}

$appstore_apps = readfromappstore();

if exists($allow_apps;) {
  $appstore_apps = array_intersect ($appstore_apps, $allow_apps)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions