-
Notifications
You must be signed in to change notification settings - Fork 35
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
sig#809 - enhance permission validation for Onboarding Service Provider #1108
Comments
@lavanya-bmw is this done and can be tested by @gopalreddy-bmw then please update the status |
@MaximilianHauer after discussing with @oyo, martin will further implement generic company role validation mechanism. |
@gopalreddy-bmw can you retest this please. |
@lavanya-bmw / @oyo @evegufy fyi |
Precondition
Description
The Onboarding Service Provider Management Page is intended for Onboarding Service Providers (OSPs) only. Therefore, it is necessary to check not only the user's role permissions but also whether the company itself has the Onboarding Service Provider Role.
Otherwise, the page would be visible to company types that have no interest in this information.
To achieve this:
Get the company role from the endpoint GET: /api/administration/companydata/ownCompanyDetails.
Check for the ONBOARDING_SERVICE_PROVIDER role.
Check against the
configure_partner_registration
permission to ensure that only users of OSP companies are able to execute the endpoints and have the necessary rights.Overall, it needs to be ensured that no company or role can see this page unless they can use it properly, to avoid frustrating the user during their journey.
Acceptance Criteria
Visibility Restriction:
Role and Permission Checks:
configure_partner_registration
permission to access and perform actions on the Onboarding Service Provider Management Page.Endpoint Response Handling:
Test Cases
--
Verify that the Onboarding Service Provider Management Page is only visible to users who belong to companies with the "Onboarding Service Provider" role.
Verify that users from other company types cannot access or view the Onboarding Service Provider Management Page.
Verify that the system checks the user's role and the company's role when loading the menu to show the Onboarding Service Provider Management Page.
configure_partner_registration
(CX Admin/Company Admin/IT Admin).configure_partner_registration
.Verify that if a user without the required role and permission attempts to access the Onboarding Service Provider Management Page directly, the system responds with an appropriate HTTP status code (e.g., 403 Forbidden) and a clear error message.
configure_partner_registration
permission.The text was updated successfully, but these errors were encountered: