Skip to content

RBAC #1

@boazpoolman

Description

@boazpoolman

This plugin has a lot of overlap with the native User & Permissions plugin. However, one thing that the UP plugin offers that the Better Auth plugin does not, is RBAC. We should test different options here, but ultimately it comes down to 2 options:

  1. Implement a similar RBAC system as UP, essentially making this plugin a UP replacement
  2. Integrate this plugin with UP, making use of it's RBAC while utilizing Better Auth for all authentication purposes

Personally I'm more inclined to go with option 1. That would mean we could eventually deprecate the Users & Permissions plugin, which is something that has been on the table for a long time. Looking through the code, I think this plugin could register a similar authentication strategy as the Users & Permissions plugin does. That can then be registered in the register function.

'use strict';

module.exports = ({ strapi }) => {
  strapi.get('auth').register('content-api', authStrategy);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions