cacti icon indicating copy to clipboard operation
cacti copied to clipboard

refactor(cmd-api-server): pull OAuth2 endpoint scopes from openapi.json

Open petermetz opened this issue 2 years ago • 1 comments

Description

  1. Currently we do not specify the security section in the openapi.json files at all so this is the first thing to address
  2. 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

  1. Test coverage added to see that the scopes are indeed getting pulled from the spec file.

petermetz avatar Sep 16 '23 20:09 petermetz

Hello @jagpreetsinghsasan I would like to work on this one, Thank you

aldousalvarez avatar Jul 30 '24 02:07 aldousalvarez