Hi all,

In the new React based dashboard component we need to implement a
permission model based on user roles to limit access to dashboard
resources. Since this can be a common requirement among all the React based
apps in under Analytics we thought of introducing a common component to
serve the purpose. Therefore we are thinking of add this component into
carbon-analytics repository.

Implementation:

As we discussed internally this component will expose an OSGi service which
provides all the necessary APIs. This includes the following.

   - CRUD operations on permissions (i.e. add/edit/delete/get/list
   permissions)
   - Grant and revoke permissions from particular roles.

In order to persist permissions following database will be implemented.

*PERMISSIONS*

ID INT AUTO_INCREMENT PRIMARY KEY
APP_NAME VARCHAR(3) NOT NULL
PERMISSION_STRING VARCHAR(50) NOT NULL



*ROLE_PERMISSIONS*

ID INT AUTO_INCREMENT PRIMARY KEY
PERMISSION_ID INT NOT NULL
ROLE_NAME VARCHAR(100) NOT NULL


Since we are not maintaining the roles withing this database schema we
suppose to retrieve them via the SCIM API.

Appreciate your feedback.


Regards,

*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  [email protected]
Web:    www.wso2.com

lean . enterprise . middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to