feat(auth): add authorization roles #26

Closed
opened 2025-07-28 09:09:16 +00:00 by chartgerink · 1 comment
Owner

Currently, all users are considered equal on the service. This means that there is no option to provide separate actions, depending on the authorization of the user.

For example, an admin should have more permissions in terms of settings (OIDC setup).

This issue tracks the work of implementing authorization roles for the service. The actual authorization logic is tracked in #54.

Currently, all users are considered equal on the service. This means that there is no option to provide separate actions, depending on the authorization of the user. For example, an admin should have more permissions in terms of settings (OIDC setup). This issue tracks the work of implementing authorization roles for the service. The actual authorization logic is tracked in #54.
Author
Owner

After looking at Mastodon, Lemmy, and Pixelfed, I suggest we take the following global roles to not overcomplicate it:

  • Regular
  • Moderator
  • Administrator

Previously, in v1.0, we had:

  • Superadmin
  • Supporting
  • Customer

Supporting and customer are dropped for v2, as these are not going to be catered to. Individual supporting memberships will have to be managed someway, but not here.

After looking at Mastodon, Lemmy, and Pixelfed, I suggest we take the following global roles to not overcomplicate it: - Regular - Moderator - Administrator Previously, [in v1.0](https://github.com/libscie/ResearchEquals.com/blob/1dde1cda21dde583b083262f48ec3b1888b679b5/db/schema.prisma#L179C1-L183C2), we had: - Superadmin - Supporting - Customer Supporting and customer are dropped for v2, as these are not going to be catered to. Individual supporting memberships will have to be managed someway, but not here.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: libscie/researchequals-api#26
No description provided.