cacti
cacti copied to clipboard
refactor(cmd-api-server): pull OAuth2 endpoint scopes from openapi.json
Description
- Currently we do not specify the security section in the openapi.json files at all so this is the first thing to address
- Once the security sections in the spec files are consistent with the current implementation (JWTs with scopes for RBAC) then we can start refactoring the endpoint implementations in a way that uses the importer OpenAPI spec (the src/main/json/openapi.json files) security sections scope declarations instead of hardcoding it in the typescript code like it is done now)
Acceptance Criteria
- Test coverage added to see that the scopes are indeed getting pulled from the spec file.
Hello @jagpreetsinghsasan I would like to work on this one, Thank you