Skip to content
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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 10, 2024

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

    Primary Changes
    ----------------
    1. added OAuth2 security endpoints scopes to openapi.json
    2. added a test to make sure if the scopes are indeed getting
       pulled from the spec file
    
    Fixes hyperledger-cacti#2693
    
    Signed-off-by: aldousalvarez <aldousss.alvarez@gmail.com>
    
    1. Please also refactor the third endpoint (prometheus metrics) accordingly
    2. Also please extend the test case with each tokens having specific scopes
    and then assert that the tokesn with the correct scopes work and the ones
    that don't have the correct scopes do not even when they are otherwise
    valid tokens.
    
    Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
    aldousalvarez committed Oct 10, 2024
    Configuration menu
    Copy the full SHA
    a637f50 View commit details
    Browse the repository at this point in the history