-
Notifications
You must be signed in to change notification settings - Fork 8
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
Make admin web app accessible with users with different roles and permissions #1187
Comments
We had a design review to finalize the design. Admin web app is not developed to restrict different sections based on the scopes. Currently any user with apim:admin scope can view all the sections (Rate limiting policies, Gateways, API Categories, Key Managers, Settings except Tasks). We can restrict each section by checking each user's scopes from the UI. But if we can go with an in- built role(internal role) for common scenarios such as task managing, rate limiting, settings ..etc. we can reduce the overhead of assigning multiple scopes for the users. We will have to create internal roles for each operation as in below.
In case of the design, the user experience may be easy as follows. Customers want to restrict admin users for the work-flow functionalities, they just assign admin users to internal/workflowManger roles. When an admin user logs to the admin portal, he/she can only see the tasks left side menu.
|
By considering the user experience and the maintainability, we discussed to go with an internal/manager role which is bound to most common user scenarios such as tasks and rate limiting policies. It is the default role which will go with the pack. Besides that, if someone wants to add other functionalities to it or else if the user wants to restrict only for one operation, he/she has to follow the doc and create custom roles and map related scopes to it. |
We had a code review and asked to create a new constant file and put the necessary constants in there without adding it to the public accessible settings.js. |
I created separate file and still the PR is in review |
Please find the doc [1], PRs [2] |
Additional Fixes |
Integration test fixes |
Remove invalid scopes wso2/apim-apps#514 |
Problem
Currently, admin web app is not developed to restrict different sections based on the scopes. Only the workflow sections check for the workflow-related scopes [1] before loading and because of it, we can't allow different roles of users to access the admin web app.
[1] - https://github.com/wso2/apim-apps/blob/main/portals/admin/src/main/webapp/source/src/app/components/AdminPages/Dashboard/Dashboard.jsx#L43
Solution
Evaluate the scopes of each section before render.
Affected Component
APIM
Version
No response
Implementation
No response
Related Issues
No response
Suggested Labels
No response
The text was updated successfully, but these errors were encountered: