F1 (Java) Story 10: Add Entitlement groups for the P&WS service access
Description
Needs to add several new groups into Entitlement for Project-and-flow service's request to be authorized by Role matcher.
- public static final String VIEWER = "service.pws.viewer";
- public static final String CREATOR = "service.pws.creator";
- public static final String ADMIN = "service.pws.admin";
Acceptance criteria
- When a request from PWS service goes to Entitlement service it is expected to receive list of Groups.
- While iterating the received groups from Entitlement service there should be a match for groups listed in the Description section.
- new groups must be manually creted in the dev env (with Entitlements /groups API)
- the groups should be included to the OSDU bootstrapping (Entitlements repo : feature branch + MR + (possibly) ADR)
Testing scenarios
All requests to PWS's endpoints should successfully execute a Role check with role named 'service.pws....' with the help of AuthorizationFilter.
Technical notes
No Technical notes.