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

Can't add resource to API imported from OAS with clientCredentials security flow #2295

Closed
Manasha11 opened this issue Nov 30, 2023 · 1 comment

Comments

@Manasha11
Copy link

Description

The following error gets printed when trying to add a resource to an API imported from OAS with clientCredentials flow.
ERROR Error while parsing OpenAPI definition:attribute components.securitySchemes.default.scopes is missing {org.wso2.carbon.apimgt.rest.api.publisher.v1.impl.ApisApiServiceImpl}

Steps to Reproduce

  • Create an API
  • Download the API swagger definition
  • Then change the implicit flow config with client credentials flow config.
clientCredentials:
tokenUrl: https://test.com/token
scopes: {}

-Import the API definition file and create a new API.
-Add a new resource

Affected Component

APIM

Version

3.0.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

@YasasRangika
Copy link

This issue does not apply to the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants