gbv / jskos-server

Web service to access JSKOS data
https://coli-conc.gbv.de/api/
MIT License
6 stars 4 forks source link

User management #40

Closed nichtich closed 5 years ago

nichtich commented 5 years ago

This is a more complex issue to be discussed. We soon need a users table with things like

The users table is public and accessible via its own endpoint. One could infer its information from mappings and annotations anyway.

Admin (#39) is not a kind of user but an additional method to interact with the database.

user rights

I any case we don't want to store passwords and user rights should not be too complex. For instance two boolean status:

The server can be configured which status new users should have by default.

We don't want complex roles and rights such as who-is-allowed-to-add-or-annotate-which-kind-of-mappings. This must be solved by having multiple instances of jskos-server.

private user information

This should not be stored in the database for security and privacy reasons (use in-memory and/or flat-file store instead). Backup is not needed.

stefandesu commented 5 years ago

I agree that it's better to not store user data. Instead, we could add an option to Cocoda to import/export settings so that a user can synchronize two of their devices manually if needed.

nichtich commented 5 years ago

With https://github.com/gbv/cocoda-userdb the user management will not be part of jskos-server but it needs to be connected with jskos-server.

stefandesu commented 5 years ago

Closed in favor of #44.