os-js / osjs-client

OS.js Client Module
https://manual.os-js.org/
Other
31 stars 32 forks source link

Provide a way to select packages for individual users via configuration #50

Open andersevenrud opened 5 years ago

andersevenrud commented 5 years ago

Currently, the only way to select what packages a user can use is:

  1. Via metadata.json in a package. Which does not really solve this problem. This is usually only applicable to things that requires admin access.
  2. Via blacklist in the authentication adapters. Which is kind of the opposite of what is suggested here.

So, my thought is just to add a configuration option for this, ex.:

{
  packages: {
    users: {
      username: {
        allow: ['A'],
        deny: ['B']
      }
    }
  }
}

This will allow for doing whitelisting and blacklisting.

andersevenrud commented 5 years ago

Related issues:

andersevenrud commented 4 years ago

Related issues: