Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Identity Management #7

Open
max-moser opened this issue Oct 19, 2020 · 0 comments
Open

Better Identity Management #7

max-moser opened this issue Oct 19, 2020 · 0 comments

Comments

@max-moser
Copy link
Collaborator

Current Situation

For reasons of simplicity, we make use of RecordServices to create and update records and drafts.
For permission checks, these services require the identity of the user making the changes.
Currently, the provided identity is hard-coded as an arbitrary value and the permission checks are bypassed.

Improvements

Since this is hardly optimal, some thoughts should be given on how to improve the situation.

It should be noted however that the impact of this is very likely relatively small, and the solution approaches should be kept as simple as possible.

Specification of an maDMP Record Creator

One idea would be to (optionally) allow a specific user to be marked as the "maDMP record creator", who will be set as the creator of all new records/drafts created by the maDMP integration.
If this user is not set (i.e. no user is marked), the first relevant contributor (as parsed from the DMP) could still be used as the record's owner.
Either way, the creator's identity could be used for permission checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant